Closed Bug 240640 Opened 20 years ago Closed 20 years ago

incorrect HTML parsing on html-comments (like <!--)

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: delfins, Assigned: bugzilla)

References

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8

if you have any HTML comments ( <!-- ..whatever.. --> ), and also having string
"--" inside, HTML is parsed incorrectly - we can see comment ending string "-->"
in our page.

Reproducible: Always
Steps to Reproduce:
1. create some HTML like

[html]
<strong> -- </strong>
[html]

2. comment it with <!-- and -->

3. see results

Actual Results:  
we can see printed string "-->" 

Expected Results:  
but it should not been there !!!
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
the -- sequence is not allowed in HTML comments per the specification
You need to log in before you can comment on or make changes to this bug.