OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 document.register("x-foo", { prototype: Object.create(HTMLElement.prototype, { c
reatedCallback: { value: function () { this.innerHTML = "<x-foo>Hello</x-foo>";
} } }) }); | 8 document.registerElement("x-foo", { prototype: Object.create(HTMLElement.prototy
pe, { createdCallback: { value: function () { this.innerHTML = "<x-foo>Hello</x-
foo>"; } } }) }); |
9 if (window.testRunner) | 9 if (window.testRunner) |
10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
11 document.createElement("x-foo"); | 11 document.createElement("x-foo"); |
12 debug("PASS unless crash"); | 12 debug("PASS unless crash"); |
13 </script> | 13 </script> |
14 </body> | 14 </body> |
15 </html> | 15 </html> |
OLD | NEW |