blob: d7951b4dd7882c21d615edc0cc42dc9f45014c7a [file] [log] [blame]
Using document.registerElement() for extending HTML and non-HTML elements.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS html1.namespaceURI is "http://www.w3.org/1999/xhtml"
PASS html2.namespaceURI is "http://www.w3.org/1999/xhtml"
PASS html3.namespaceURI is "http://www.w3.org/1999/xhtml"
PASS html4.namespaceURI is "http://www.w3.org/1999/xhtml"
PASS notHTML.namespaceURI is "http://www.example.com/"
PASS notHTML instanceof CustomHTMLElement is false
PASS notHTML instanceof HTMLElement is false
PASS svg1.tagName is "g"
PASS svg1 instanceof SVGGElement is true
PASS svg1 instanceof CustomSVGElement is true
PASS svg1.namespaceURI is "http://www.w3.org/2000/svg"
PASS svg2.tagName is "svg-foo"
PASS svg2.namespaceURI is "http://www.w3.org/2000/svg"
PASS svg3.tagName is "svg-foo"
PASS svg3.namespaceURI is "http://www.w3.org/2000/svg"
PASS notSVG1.namespaceURI is "http://www.w3.org/1999/xhtml"
PASS notSVG1 instanceof CustomSVGElement is false
PASS notSVG1 instanceof HTMLUnknownElement is false
PASS notSVG1 instanceof HTMLElement is true
PASS Object.getPrototypeOf(notSVG1) is HTMLElement.prototype
PASS notSVG2.namespaceURI is "http://www.w3.org/1999/xhtml"
PASS notSVG2 instanceof CustomSVGElement is false
PASS notSVG2 instanceof HTMLUnknownElement is false
PASS notSVG2 instanceof HTMLElement is true
PASS Object.getPrototypeOf(notSVG2) is HTMLElement.prototype
PASS successfullyParsed is true
TEST COMPLETE