Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / Attr / parent-adopt-node.html
blob5b57f6f6912b9071dbbbc95442886f1aa8cf6f9f
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <div id="target"></div>
8 <script>
9 var target = document.getElementById("target");
10 var attr = target.attributes[0];
11 var anotherDocument = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "", null);
12 anotherDocument.title = "Hello";
13 anotherDocument.adoptNode(target);
14 shouldBe("attr.ownerDocument.title", "anotherDocument.title");
15 </script>
16 </body>
17 </html>