Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2841393003: createElementNS() should now throw only InvalidCharacterError, not NamespaceError (Closed)
Patch Set: rebased Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/misc/acid3.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index e7dd89662dd23e93746204a5a1ad52d3ddb41a5e..39412f876090f6532a22f9558f6e38b5b1fe502c 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -5083,12 +5083,7 @@ bool Document::ParseQualifiedName(const AtomicString& qualified_name,
message.Append("has an empty local name.");
}
- if (return_value.status == kQNInvalidStartChar ||
- return_value.status == kQNInvalidChar)
- exception_state.ThrowDOMException(kInvalidCharacterError,
- message.ToString());
- else
- exception_state.ThrowDOMException(kNamespaceError, message.ToString());
+ exception_state.ThrowDOMException(kInvalidCharacterError, message.ToString());
return false;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/misc/acid3.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698