[thelist] HTML Comments and Double Hyphens on Netscape 6.1 and 6.2
James Aylard
evolt at pixelwright.com
Thu Jun 20 17:26:01 CDT 2002
Ray,
> There appears to be a bug in Netscape 6.1 and 6.2 regarding the contents
of
> an HTML comment. Apparently, if you have two consecutive hyphens within
an
> HTML comment, it ignores the closing comment tag.
This is due to a strict interpretation of the HTML 4.x recommendation,
which states:
"White space is not permitted between the markup declaration open
delimiter("<!") and the comment open delimiter ("--"), but is permitted
between the comment close delimiter ("--") and the markup declaration close
delimiter (">"). A common error is to include a string of hyphens ("---")
within a comment. Authors should avoid putting two or more adjacent hyphens
inside comments." [1]
1. http://www.w3.org/TR/html4/intro/sgmltut.html#idx-HTML
James Aylard
More information about the thelist
mailing list