[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 -->


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:


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.)


More information about the whatwg mailing list