3 testRunner
.dumpAsText();
6 var xmld
= new DOMParser().parseFromString( "<doc/>", "text/xml");
8 var fragment
= document
.createDocumentFragment();
9 fragment
.appendChild(document
.createTextNode("1"));
10 fragment
.appendChild(document
.createTextNode("2"));
12 var importedFragment
= xmld
.importNode(fragment
, true);
13 xmld
.firstChild
.appendChild(importedFragment
);
14 if (xmld
.firstChild
.textContent
!= "12")
15 throw "wrong imported DOM tree: '" + xmld
.firstChild
.textContent
+ "'";
17 document
.write("<div>SUCCESS</div>");
19 document
.write("<div>" + ex
+ "</div>");