blob: 4cb4f34b3b239c49e6afd17e040664e6fa9dd431 [file] [log] [blame]
<head></head>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
// Blow away the <head> element above in a way that doesn't create a JavaScript wrapper.
document.documentElement.innerHTML = "";
</script>
<title>
This element gets put into the head by the parser, but we deleted the head!
</title>
<body>
If you can see this text without crashing, the test passed.
<script>
if (document.getElementsByTagName("title").length)
document.write(" Note: The title element did end up in the document.");
else
document.write(" Note: The title element did not end up in the document.");
</script>
</body>