OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <div id="target"></div> | 7 <div id="target"></div> |
8 <script> | 8 <script> |
9 var target = document.getElementById("target"); | 9 var target = document.getElementById("target"); |
10 var attr = target.attributes[0]; | 10 var attr = target.attributes[0]; |
11 var anotherDocument = document.implementation.createDocument("http://www.w3.org/
1999/xhtml", "", null); | 11 var anotherDocument = document.implementation.createDocument("http://www.w3.org/
1999/xhtml", "", null); |
12 anotherDocument.title = "Hello"; | 12 anotherDocument.title = "Hello"; |
13 anotherDocument.adoptNode(target); | 13 anotherDocument.adoptNode(target); |
14 shouldBe("attr.ownerDocument.title", "anotherDocument.title"); | 14 shouldBe("attr.ownerDocument.title", "anotherDocument.title"); |
15 </script> | 15 </script> |
16 <script src="../../js/resources/js-test-post.js"></script> | |
17 </body> | 16 </body> |
18 </html> | 17 </html> |
OLD | NEW |