Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / fast / parser / head-content-after-head-removal.html
blob4cb4f34b3b239c49e6afd17e040664e6fa9dd431
1 <head></head>
3 <script>
4 if (window.layoutTestController)
5 layoutTestController.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>