3 <body onload=
"runTest()">
4 <p>This tests moving a node list that uses atomic string gets adopted to a new document properly.
<br>
5 The test passes if WebKit does not hit an assertion.
</p>
8 if (window
.testRunner
) {
9 testRunner
.dumpAsText();
10 testRunner
.waitUntilDone();
15 var newDocument
= document
.implementation
.createDocument(null, "someElement", null);
16 var fragment
= document
.createDocumentFragment();
17 newDocument
.documentElement
.getElementsByTagName("foo");
18 fragment
.appendChild(newDocument
.documentElement
);
20 setTimeout(function () {
21 document
.querySelector('p').innerHTML
+= '<br><br>PASS';
22 if (window
.testRunner
)
23 testRunner
.notifyDone();