Closed Bug 369780 Opened 17 years ago Closed 17 years ago

problems with HTML comments

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 235628

People

(Reporter: newtonweb, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

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
Closed: 17 years ago
Resolution: --- → DUPLICATE
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.