Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / scriptexec-during-parserRemoveChild.html
blobc27495d916570dbf06a7dbf2345533c61c6e48d3
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <body>
4 <b><p><iframe src="javascript:onunload = function() {
5 if(!top.container) {
6 top.container = document.createElement('div');
7 top.container.appendChild(frameElement.parentNode);
9 }"></iframe></b></p><!-- This order is intentional to force reparenting of iframe -->
10 <script>
11 description("Ensure that iframe onunload event handler triggered during reparenting that modifies the reparented DOM doesn't corrupt DOM.")
12 var iframe = document.querySelector("iframe");
13 shouldBe("iframe", "iframe.parentNode.firstChild");
14 var parentNode = iframe.parentNode;
15 shouldBe("parentNode", "parentNode.parentNode.firstChild");
16 </script>
17 </body>