Closed
Bug 500110
Opened 16 years ago
Closed 16 years ago
Pair of dashes before closing HTML comment tag makes comment visible on page
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 214476
People
(Reporter: eric.mitchell, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11
This code makes the entire comment (tags and all) appear. Removing the "strict" DOCTYPE makes the comment work correctly.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<body>
<!-- -- -->
</body>
</html>
Reproducible: Always
Steps to Reproduce:
1. Create a page with the code given in "Details"
2. View the page with FF3.0.11
3.
Actual Results:
<!--- -- -->
Expected Results:
(literally)
It seems the middle dashes are being counted; not all numbers work. 2 & 3 do; 4 & 5 don't. 6 & 7 do (thank goodness) but 8 is right out! Grouping the dashes with spaces is fun, too.
Comment 1•16 years ago
|
||
For (x)html with a doctype -- is the end of a comment see comments 1, 3, 4, etc. of the bug this is dupe'ed to. HTML5 explicitly changes this behavior. It is not clear if the change will carry over to previous (x)html doctypes.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•