This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
<!----> is accepted as a valid comment, but anything longer is not. Thus, the following throws several errors on the comment-line: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" > <html> <head> <title>Test</title> </head> <body> <!---------------------------------------------------------> </body> </html> This also holds true if the comment-endpoints are space-delimited: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" > <html> <head> <title>Test</title> </head> <!-- +----------------------------+------+----------------------------+ --> <!-- |============================| BODY |============================| --> <!-- +----------------------------+------+----------------------------+ --> <body> Hello, World! </body> </html>
That's not a bug: http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4 http://htmlhelp.com/reference/wilbur/misc/comment.html