Closed Bug 292574 Opened 20 years ago Closed 20 years ago

Firefox/Mozilla does not recognize the end of a comment if the comment does not end with exactly "-->"

Categories

(Firefox :: General, defect)

defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 102127

People

(Reporter: bps, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/412 (KHTML, like Gecko) Safari/412
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.6) Gecko/20050317 Firefox/1.0.2

I regularly use the Ingram Micro eCommerce site and Ingram has a comment in their page like this:

<!--- PAGE JUMP BAR ---->

The Firefox/Mozilla browsers do not recognize the "---->" as the end of the comment. The browsers skip 
all HTML until a closing "-->" is found. This causes the site to break and causes content to not render.

Reproducible: Always
Mozilla's behaviour is correct.

see here:
bug 102127, especially bug102127 comment 16 and 17
  and here
http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.2.4

<!--- PAGE JUMP BAR ---->
  >>                <<>>

>> marks the start of a comment
<< marks the end of a comment

*** This bug has been marked as a duplicate of 102127 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.