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

Unified Diff: LayoutTests/fast/dom/custom/document-register-namespace.html

Issue 14776002: Create wrappers for unresolved Custom Elements at the correct type (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
Index: LayoutTests/fast/dom/custom/document-register-namespace.html
diff --git a/LayoutTests/fast/dom/custom/document-register-namespace.html b/LayoutTests/fast/dom/custom/document-register-namespace.html
index 059a017aa902f7d4539cbeb4e2cf042dd98ba976..f556536b30947a2185d35389acf623c15c3afb57 100644
--- a/LayoutTests/fast/dom/custom/document-register-namespace.html
+++ b/LayoutTests/fast/dom/custom/document-register-namespace.html
@@ -53,11 +53,15 @@ shouldBe("svg3.namespaceURI", "'http://www.w3.org/2000/svg'");
var notSVG1 = document.createElement("svg-foo");
shouldBe("notSVG1.namespaceURI", "'http://www.w3.org/1999/xhtml'");
shouldBeFalse("notSVG1 instanceof CustomSVGElement");
-shouldBeTrue("notSVG1 instanceof HTMLUnknownElement");
+shouldBeFalse("notSVG1 instanceof HTMLUnknownElement");
+shouldBeTrue("notSVG1 instanceof HTMLElement");
+shouldBe("Object.getPrototypeOf(notSVG1)", "HTMLElement.prototype");
var notSVG2 = createElementFromHTML("<svg-foo></svg-foo>");
shouldBe("notSVG2.namespaceURI", "'http://www.w3.org/1999/xhtml'");
shouldBeFalse("notSVG2 instanceof CustomSVGElement");
-shouldBeTrue("notSVG2 instanceof HTMLUnknownElement");
+shouldBeFalse("notSVG2 instanceof HTMLUnknownElement");
+shouldBeTrue("notSVG2 instanceof HTMLElement");
+shouldBe("Object.getPrototypeOf(notSVG2)", "HTMLElement.prototype");
// Trying to extend something outside HTML or SVG should throw a NAMESPACE_ERR
shouldThrow(

Powered by Google App Engine
This is Rietveld 408576698