1 <script src=
"../../resources/js-test.js"></script>
6 var table
= document
.getElementById('table');
7 table
.parentNode
.removeChild(table
);
8 var docFragment
= document
.createDocumentFragment();
9 docFragment
.appendChild(table
);
16 description("Tests the HTML foster parenting algorithm when a DocumentFragment is the chosen foster parent");
17 var div
= document
.getElementById('div');
19 shouldBe("div.children.length", "0");
20 shouldBe("docFragment.firstElementChild.tagName", "'H1'");