The following HTML:
<html>
<body>
<script type="text/javascript">
<!--
Comment
</script>
<h1>title</h1>
</body>
</html>
Will produce an HTML with an empty body as everything will be as a comment of the script tag.
I believe the comment should be automatically closed when a matching closing tag is found, or is there another rule about this case?
W3C describes how to handle bogus states:
http://w3c.github.io/html/syntax.html#bogus-comment-state
Thanks Anthony, I'll look into it and see if we can handle this case.