Closed Bug 544091 Opened 14 years ago Closed 14 years ago

Additional "--" in HTML comment, within text, causes comment to be displayed

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 214476

People

(Reporter: belliott, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

Excerpt from the above URL
"<!-- My comments go here they should be invisible to -- all unless viewing the source -->"  The extra -- in the middle of this comment causes the 2nd paragraph of the above URL to not be displayed and the rest of the page fails.
This same error in forming a comment has forced the whole comment to be displayed in the presentation of the page it was contained in.
The author of the page didn't notice the issue since he was using IE8 ( it appeared to handle it ok), but it showed up for me under Firefox v3.5.7  
I have tried the page in IE8 v8.0.6001.18702 and it appears to work correctly. 
I have tested this with Opera v9.64 - Opera appears to handle it correctly as well.
When the extra "--" are removed or one of the dashes is removed, the comment works as expected ( hidden ) when viewed with Firefox.

Reproducible: Always
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.