OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../js/resources/js-test-pre.js"></script> | |
5 </head> | |
6 <body> | |
7 <keygen id='K'/> | |
8 <div id='X'></div> | |
9 <pre id="console"> | |
10 This tests importNode() with bound elements. | |
11 | |
12 </pre> | |
13 <script> | |
14 if (window.layoutTestController) { | |
15 layoutTestController.dumpAsText(); | |
16 | |
17 var dstDoc = new DOMParser().parseFromString('<div/>', 'text/xml'); | |
18 shouldBeNonNull('dstDoc'); | |
19 | |
20 var srcKeygen = document.getElementById('K'); | |
21 shouldBeNonNull('srcKeygen'); | |
22 var srcShadow = layoutTestController.shadowRoot(srcKeygen); | |
23 shouldBeNonNull('srcShadow'); | |
24 shouldBeNonNull('srcShadow.firstChild'); | |
25 | |
26 var importedKeygen = dstDoc.importNode(srcKeygen); | |
27 shouldBeNonNull('importedKeygen'); | |
28 shouldBeTrue('srcKeygen !== importedKeygen'); | |
29 | |
30 var importedShadow = layoutTestController.shadowRoot(importedKeygen); | |
31 shouldBeNonNull('importedShadow'); | |
32 shouldBeNonNull('importedShadow.firstChild'); | |
33 } | |
34 | |
35 var successfullyParsed = true; | |
36 </script> | |
37 <script src="../../js/resources/js-test-post.js"></script> | |
38 </body> | |
39 </html> | |
OLD | NEW |