Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / parser / head-content-after-head-removal.html
blob549f340b202dea10207c454d1e07598062e6c827
1 <head></head>
3 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 // Blow away the <head> element above in a way that doesn't create a JavaScript wrapper.
8 document.documentElement.innerHTML = "";
9 </script>
11 <title>
12 This element gets put into the head by the parser, but we deleted the head!
13 </title>
15 <body>
16 If you can see this text without crashing, the test passed.
17 <script>
18 if (document.getElementsByTagName("title").length)
19 document.write(" Note: The title element did end up in the document.");
20 else
21 document.write(" Note: The title element did not end up in the document.");
22 </script>
23 </body>