haikuwebkit/LayoutTests/fast/dom/comment-not-documentElement...

13 lines
277 B
HTML

<!-- this comment should not become the documentElement,
if it does then the page will be blank -->
<html>
<body>
<script>
if (document.documentElement.nodeType == Node.ELEMENT_NODE)
document.write("SUCESS");
else
document.write("FAIL");
</script>
</body>
</html>