| OLD | NEW |
| 1 Using document.register() for extending HTML and non-HTML elements. | 1 Using document.register() for extending HTML and non-HTML elements. |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS html1.namespaceURI is 'http://www.w3.org/1999/xhtml' | 6 PASS html1.namespaceURI is 'http://www.w3.org/1999/xhtml' |
| 7 PASS html2.namespaceURI is 'http://www.w3.org/1999/xhtml' | 7 PASS html2.namespaceURI is 'http://www.w3.org/1999/xhtml' |
| 8 PASS html3.namespaceURI is 'http://www.w3.org/1999/xhtml' | 8 PASS html3.namespaceURI is 'http://www.w3.org/1999/xhtml' |
| 9 PASS html4.namespaceURI is 'http://www.w3.org/1999/xhtml' | 9 PASS html4.namespaceURI is 'http://www.w3.org/1999/xhtml' |
| 10 PASS notHTML.namespaceURI is 'http://www.example.com/' | 10 PASS notHTML.namespaceURI is 'http://www.example.com/' |
| 11 PASS notHTML instanceof CustomHTMLElement is false | 11 PASS notHTML instanceof CustomHTMLElement is false |
| 12 PASS notHTML instanceof HTMLElement is false | 12 PASS notHTML instanceof HTMLElement is false |
| 13 PASS svg1.tagName is 'svg-foo' | 13 PASS svg1.tagName is 'svg-foo' |
| 14 PASS svg1.namespaceURI is 'http://www.w3.org/2000/svg' | 14 PASS svg1.namespaceURI is 'http://www.w3.org/2000/svg' |
| 15 PASS svg2.tagName is 'svg-foo' | 15 PASS svg2.tagName is 'svg-foo' |
| 16 PASS svg2.namespaceURI is 'http://www.w3.org/2000/svg' | 16 PASS svg2.namespaceURI is 'http://www.w3.org/2000/svg' |
| 17 PASS svg3.tagName is 'svg-foo' | 17 PASS svg3.tagName is 'svg-foo' |
| 18 PASS svg3.namespaceURI is 'http://www.w3.org/2000/svg' | 18 PASS svg3.namespaceURI is 'http://www.w3.org/2000/svg' |
| 19 PASS notSVG1.namespaceURI is 'http://www.w3.org/1999/xhtml' | 19 PASS notSVG1.namespaceURI is 'http://www.w3.org/1999/xhtml' |
| 20 PASS notSVG1 instanceof CustomSVGElement is false | 20 PASS notSVG1 instanceof CustomSVGElement is false |
| 21 PASS notSVG1 instanceof HTMLUnknownElement is true | 21 PASS notSVG1 instanceof HTMLUnknownElement is false |
| 22 PASS notSVG1 instanceof HTMLElement is true |
| 23 PASS Object.getPrototypeOf(notSVG1) is HTMLElement.prototype |
| 22 PASS notSVG2.namespaceURI is 'http://www.w3.org/1999/xhtml' | 24 PASS notSVG2.namespaceURI is 'http://www.w3.org/1999/xhtml' |
| 23 PASS notSVG2 instanceof CustomSVGElement is false | 25 PASS notSVG2 instanceof CustomSVGElement is false |
| 24 PASS notSVG2 instanceof HTMLUnknownElement is true | 26 PASS notSVG2 instanceof HTMLUnknownElement is false |
| 27 PASS notSVG2 instanceof HTMLElement is true |
| 28 PASS Object.getPrototypeOf(notSVG2) is HTMLElement.prototype |
| 25 PASS document.register('xml-foo', { prototype: Object.create(Element.prototype)
}) threw exception Error: NamespaceError: DOM Exception 14. | 29 PASS document.register('xml-foo', { prototype: Object.create(Element.prototype)
}) threw exception Error: NamespaceError: DOM Exception 14. |
| 26 PASS successfullyParsed is true | 30 PASS successfullyParsed is true |
| 27 | 31 |
| 28 TEST COMPLETE | 32 TEST COMPLETE |
| 29 | 33 |
| OLD | NEW |