Closed
Bug 584000
Opened 15 years ago
Closed 15 years ago
HTML parser bug: <!-- -- ... --> comment tag is treated as text.
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 102127
People
(Reporter: ninzya, Unassigned)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
See attached URL.
Reproducible: Always
Steps to Reproduce:
1. open http://www.stepanov.lv/pub/mozilla/bugs/mozilla_html_parser_bug.html
2. watch
Actual Results:
Comment tag is treated as text
Expected Results:
Comment tag should be treated as comment
Comment 1•15 years ago
|
||
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → INVALID
This is a dupe of bug 102127 unless the author switches to HTML5 doctype in which case it should be duped to bug 214476
Resolution: INVALID → DUPLICATE
Comment 3•15 years ago
|
||
I don't understand why everybody immediately claims that this is an error, while any HTML-checker will immediately tell you what is wrong. Do NOT use -- inside a comment !
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.stepanov.lv%2Fpub%2Fmozilla%2Fbugs%2Fmozilla_html_parser_bug.html&charset=%28detect+automatically%29&doctype=Inline&group=0
Status: RESOLVED → VERIFIED
| Reporter | ||
Comment 4•15 years ago
|
||
My bad. Didn't even thought that -- inside comment tag could cause such a hassle. Well, FAIL.
| Reporter | ||
Comment 5•15 years ago
|
||
(In reply to comment #4)
> My bad. Didn't even thought that -- inside comment tag could cause such a
> hassle. Well, FAIL.
By the way, Safari, FF, Chrome, Opera handle this well, irregarding of W3C spec. Seems like guys from Apple, Mozilla, Google and Opera intuitively felt to allow -- to be within comment tag would be right thing to do.
| Reporter | ||
Comment 6•15 years ago
|
||
OMG, not Mozilla, Microsoft i meant and IE.
Comment 7•15 years ago
|
||
(In reply to comment #5)
> (In reply to comment #4)
> > My bad. Didn't even thought that -- inside comment tag could cause such a
> > hassle. Well, FAIL.
>
> By the way, Safari, FF, Chrome, Opera handle this well, irregarding of W3C
> spec. Seems like guys from Apple, Mozilla, Google and Opera intuitively felt to
> allow -- to be within comment tag would be right thing to do.
That's because they're not correct (the HTML standard explicitly forbids it). It has been a problem since the early 90's. But that part of the standard was changed in HTML5, among various other improvements in the parser. SGML compliance is not needed anymore.
You need to log in
before you can comment on or make changes to this bug.
Description
•