Closed
Bug 305669
Opened 19 years ago
Closed 19 years ago
a combo of '!' with a double '-' causes code to treat this as a comment when it is not formatted as a standard html comment (i.e. '!--')
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
DUPLICATE
of bug 102127
People
(Reporter: teeheemail, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 I used this comment after a 'meta name="review"' tag: <!-- OPTIONAL! No more than one year -- in this format: DD MMM YYYY --> The browser (Firefox/Mozilla) is associating the '!' after the word 'OPTIONAL' and the '--' between the phrase 'No more than one year' and 'in this format: DD MMM YYYY' as a comment. If the '--' is not immediately following a '!' then firefox/mozilla shouldn't make it a comment! Reproducible: Always Steps to Reproduce: 1.in the <head> tag, add an HTML comment with the following text: <!-- OPTIONAL! No more than one year -- in this format: DD MMM YYYY --> 2.immediately after the comment above include a link to a style sheet <link rel="stylesheet" href="css/pageLayout.css" type="text/css" /> 3.view the page. The parser will treat the stylesheet as though it is commented out because of the '!' after the 'OPTIONAL' and then the '--' that follows it, even though there are spaces and text between the '!' and the '--' Actual Results: stylesheet will not render because firefox/mozilla treat it as though it was commented out Expected Results: if there is any characters between a '!' and a '--' firefox/mozilla should not make the text after '--' as a comment.
Comment 1•19 years ago
|
||
It's invalid HTML. From http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.4 : "A common error is to include a string of hyphens ("---") within a comment. Authors should avoid putting two or more adjacent hyphens inside comments." *** This bug has been marked as a duplicate of 102127 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Summary: a combo of '!' with a double '-' causes code to treat this as a comment when it is not formatted as a standard html comment (i.e. '!--') → a combo of '!' with a double '-' causes code to treat this as a comment when it is not formatted as a standard html comment (i.e. '!--')
You need to log in
before you can comment on or make changes to this bug.
Description
•