Closed
Bug 310554
Opened 19 years ago
Closed 19 years ago
HTML comments aren't displayed correctly when any doctype is defined
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: tylmann, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Look at the source of the mentioned url, it is reduced to the absolute minimum for displaying the bug. Problem: Inside a HTML-Comment there is a <p>-tag with two lines (--) inside. Firefox recognizes the end </p>-tag as end of my comment. (could be any tag, the <p> is only an example) This bug only occurs when any doctype is defined. Reproducible: Always Steps to Reproduce: 1. create an empty html-page, define a doctype inside 2. add any comment with any tag inside 3. place two lines (--) anywhere in the text inside the tag. (for example <p>foo -- bar</p>) 4. view the page in firefox -> it isn't displayed correctly Actual Results: firefox recognizes the end-tag as end of comment. '-->' is displayed Expected Results: display nothing, because every text is inside the comment
Comment 1•19 years ago
|
||
Invalid. See: http://www.w3.org/TR/REC-xml/#sec-comments ('the string "--" (double-hyphen) MUST NOT occur within comments.') Also http://developer.mozilla.org/en/docs/Gecko_Compatibility_Handbook#Invalid_Comments http://developer.mozilla.org/en/docs/HTML:The_Importance_of_Correct_Commenting#XML (from bug 309974 comment #4).
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•