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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Node-lookupNamespaceURI.html

Issue 2737273002: [DOM] Fix null namespace handling in Node.isDefaultNamespace(). (Closed)
Patch Set: Created 3 years, 9 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
Index: third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Node-lookupNamespaceURI.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Node-lookupNamespaceURI.html b/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Node-lookupNamespaceURI.html
index 45b6c0fbbcf303fbf17b249875bad8d6b78cee9a..f5401e54723b492b942f2a127a40a3b7328e97ca 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Node-lookupNamespaceURI.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/dom/nodes/Node-lookupNamespaceURI.html
@@ -32,7 +32,15 @@ isDefaultNamespace(frag, '', true, 'DocumentFragment is in default namespace, pr
isDefaultNamespace(frag, 'foo', false, 'DocumentFragment is in default namespace, prefix "foo"');
isDefaultNamespace(frag, 'xmlns', false, 'DocumentFragment is in default namespace, prefix "xmlns"');
-
+var docType = document.doctype;
+lookupNamespaceURI(docType, null, null, 'DocumentType should have null nemspace, prefix null');
+lookupNamespaceURI(docType, '', null, 'DocumentType should have null namespace, prefix ""');
+lookupNamespaceURI(docType, 'foo', null, 'DocumentType should have null namespace, prefix "foo"');
+lookupNamespaceURI(docType, 'xmlns', null, 'DocumentType should have null namespace, prefix "xmlns"');
+isDefaultNamespace(docType, null, true, 'DocumentType is in default namespace, prefix null');
+isDefaultNamespace(docType, '', true, 'DocumentType is in default namespace, prefix ""');
+isDefaultNamespace(docType, 'foo', false, 'DocumentType is in default namespace, prefix "foo"');
+isDefaultNamespace(docType, 'xmlns', false, 'DocumentType is in default namespace, prefix "xmlns"');
var fooElem = document.createElementNS('fooNamespace', 'prefix:elem');
fooElem.setAttribute('bar', 'value');

Powered by Google App Engine
This is Rietveld 408576698