Closed
Bug 267372
Opened 20 years ago
Closed 20 years ago
Text enclosed within HTML comments tags still displays
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: dowd, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20041001 Firefox/0.10.1
In the page http://fatherdowd.blogspot.com, there is a large section of text at
the end of the page enclosed within comments tags (i.e. the <!-- and --> tags).
This is WML data which is not meant to be displayed in a regular web browser
like Explorer or Firefox. Explorer does not display it, but Firefox does.
Reproducible: Always
Steps to Reproduce:
1. Load the page, and scroll to the end. The text is plain to see.
2. Do a View, Page Source. You will see that the comments begin to display
somewhere in the middle of the commented text, at this line:
<p><a href="#109923051777919529" >Baptismal ministry -- ramping things up</a>
Note the two dashes, followed (much later) by a '>'. The engine is interpreting
this as a close of the comments tag, so everything after is displayed. That
can't be right.
Actual Results:
Exactly what I describe.
Expected Results:
It should close the comments only at the 'EndWAP-->' line, just before the
</body> tag, and not before. Explorer does this correctly.
I'm listing this as major simply because the comments tags are all over the
place in the Web, and if this break them then it will be a major issue.
Updated•20 years ago
|
Component: General → HTML: Parser
Product: Firefox → Browser
Version: unspecified → 1.0 Branch
Comment 1•20 years ago
|
||
A closer look at the source reveals the following line, about 20 lines after the
"<!--StartWAP" line:
<p><a href="#109923051777919529" >Baptismal ministry -->
That "-->" at the end is (correctly) closing the comment.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Comment 2•20 years ago
|
||
My bad - I was relying of the "View Source" - which apparently got confused as
well. Reopening.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Comment 3•20 years ago
|
||
(In reply to comment #0)
> Note the two dashes, followed (much later) by a '>'. The engine is interpreting
> this as a close of the comments tag, so everything after is displayed. That
> can't be right.
That's exactly right. You cannot have -- in a comment, because that closes the
comment. See http://www.w3.org/TR/html401/intro/sgmltut.html#idx-HTML
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → INVALID
Comment 4•20 years ago
|
||
This is also a duplicate of Bug 237261 (resoved as INVALID, for the reason given
in comment #3).
Comment 5•20 years ago
|
||
Bah - I meant duplicate of bug 233270, which was resolved as "INVALID".
I'll go get some sleep now and stop causing damage.
You need to log in
before you can comment on or make changes to this bug.
Description
•