Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / resources / move-during-parsing-iframe.html
blobcbbf98420a0ed8a8cb5d816b20610eb35b294082
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Move node during parse</title>
5 </head>
6 <body>
7 <div>
8 <p>This text should not show inside the iframe. It should show inside the parent. Furthermore, there should be text saying "Middle of Page" and then "End of Page" below (also in the parent).</p>
9 <script>
10 if (parent.document.adoptNode) {
11 parent.document.documentElement.lastChild.appendChild(parent.document.adoptNode(document.getElementsByTagName("div")[0]));
12 } else {
13 parent.document.documentElement.lastChild.appendChild(document.getElementsByTagName("div")[0]);
15 </script>
16 <p>Middle of Page</p>
17 <script>alert(window.location.href.match(/parser.*/));</script>
18 <p>End of Page</p>
19 </div>
20 </body>
21 </html>