4 <p>This tests that when nodes are foster-parented after being adopted into another document,
5 they are adopted back into the ownerDocument of their foster parent.
</p>
10 testRunner
.dumpAsText();
12 var tr
= document
.querySelector('tr');
13 var doc
= document
.implementation
.createHTMLDocument();
20 var div
= document
.querySelector('div');
21 if (div
.ownerDocument
=== div
.parentNode
.ownerDocument
)
22 document
.body
.appendChild(document
.createTextNode('PASS.'));