User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:188.8.131.52) Gecko/20061204 Firefox/184.108.40.206 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:220.127.116.11) Gecko/20061204 Firefox/18.104.22.168 See how this HTML comments works: Test <!-- Any Comment -- Should be comment --> Not comment anymore Reproducible: Always Steps to Reproduce: 1. Paste the code into an HTML file and see what is happening 2. Type a > after "Should be comment" and see another kind of error 3. Actual Results: HTML Comments didn't work Expected Results: The comments cannot be displayed I'm using Firefox without any themes, but using IE Tab extension.
Double hyphens are invalid inside html comments.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → DUPLICATE
Duplicate of bug: 235628
Would someone care to explain WHY double hyphens separated from a closing ">" is interpreted as a comment closing token? Double hyphens should be ignored unless they appear as "-->" KDE's Konqueror, Opera (Windows and Linux) and IE all ignore double hyphens unless they form a complete comment closing token. Whay doesn't Mozilla/Firefox?? Unless someone can quote the RFC, FF's HTML parser needs fixed!!!
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4 "A common error is to include a string of hyphens ("---") within a comment"
You need to log in before you can comment on or make changes to this bug.