Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / resources / script-modify-page-inner.html
blob991e2e6fc052a10b7c89df822eaf7d5129049fc8
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div>
5 <script>
6 if (parent.document.adoptNode)
7 parent.document.body.appendChild(parent.document.adoptNode(document.getElementsByTagName("div")[0]));
8 else
9 parent.document.body.appendChild(document.getElementsByTagName("div")[0]);
10 </script>
11 <script>
12 alert('should be outer: ' + document.URL.match(/parser.*/));
13 </script>
14 </div>
15 <script>
16 alert('should be inner: ' + document.URL.match(/parser.*/));
17 </script>
18 </body>
19 </html>