[whatwg] Ending comments with --!>
Adam Barth
whatwg at adambarth.com
Thu Jun 26 22:30:57 PDT 2008
Internet Explorer 7, Firefox 3, Safari 3.1, and Opera 9.5 accept --!>
as an alternate comment terminator to the usual -->
http://crypto.stanford.edu/~abarth/research/html5/comments/strange-ending.html
In Internet Explorer 7 and Opera 9.5, if the document later contains
the usual comment terminator, then that character sequence terminates
the comment instead:
http://crypto.stanford.edu/~abarth/research/html5/comments/strange-ending-with-real-ending.html
http://crypto.stanford.edu/~abarth/research/html5/comments/strange-ending-with-later-comment.html
Firefox 3 and Safari 3.1 do not appear to exhibit this behavior.
(Interestingly, the syntax highlighter in vim suggests the document
will be parsed as in Firefox and Safari, no doubt contributing to
author confusion.)
Adam
More information about the whatwg
mailing list