bad behavior when parsing HTML comments

VERIFIED INVALID

Status

()

Core
HTML: Parser
VERIFIED INVALID
14 years ago
14 years ago

People

(Reporter: Lukas Petrovicky (CZilla), Unassigned)

Tracking

Trunk
x86
Windows 98
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

14 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040819 Firefox/0.9.1+ (MOOX M2)
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.2) Gecko/20040819 Firefox/0.9.1+ (MOOX M2)

let's say we have a following comment:
<!--<div id="listing"><a href="">&laquo; Previous 20</a> -- <a href="">Next 20
&raquo;</a></div>-->

mozilla decides that characters -- indicate ending of a comment, then seeks for
next ">" and makes the comment end.

Reproducible: Always
Steps to Reproduce:


Actual Results:  
comment ends after <a href=""> (before "Next 20"). "Next 20
&raquo;</a></div>-->" is displayed.

Expected Results:  
comment ends after -->, nothing is displayed

Comment 1

14 years ago
-- *is* the end of the comment.

You cannot have -- in the middle of a comment.  See
http://www.w3.org/TR/html401/intro/sgmltut.html#idx-HTML

Mozilla's behavior is correct.  Bug is invalid.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → INVALID

Updated

14 years ago
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.