Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / foster-parent.html
blob65195d9f0f296dfd0d276242d4008f30d9e88f83
1 <script src="../../resources/js-test.js"></script>
3 <div id="div">
4 <table id="table">
5 <script>
6 var table = document.getElementById('table');
7 table.parentNode.removeChild(table);
8 var docFragment = document.createDocumentFragment();
9 docFragment.appendChild(table);
10 </script>
11 <h1></h1>
12 </table>
13 </div>
15 <script>
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'");
21 </script>