Closed
Bug 2781
Opened 26 years ago
Closed 26 years ago
CSS parser is incorrectly treating <!-- and --> (CDO/CDC)
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
VERIFIED
WONTFIX
People
(Reporter: ian, Assigned: peterl-retired)
References
()
Details
CDO (<!--) and CDC (-->) should only be ignored in *very particular* places
of CSS grammar.
Examples:
.xa <!-- { color: yellow; background: red none; }
The <!-- should not be parsed as CDO, it should be parsed as a part of the
selector. Since it is invalid in a selector, then the entire rule should be
ignored.
.xb { color: yellow -->; background: red none <!--; }
Since those characters are not valid in those properties' values, both
properties should be ignored.
.xc { <!-- color: yellow; --> background: red none; }
Here the they should be parsed as part of the property name, and so both
properties should be ignored.
IT IS INCORRECT to pass CDO/CDC as whitespace. They are separate entities,
which IN CERTAIN PLACES can be ignored by the CSS parser, to facilitate
inserting CSS into HTML. See the spec.
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 1•26 years ago
|
||
BTW, according to the HTML spec, whitespace is allowed between the "--" and the
">" of the CDC. While the CSS2 spec doesn't live up to that, you may want to
test for it anyway...
Reporter | ||
Comment 2•26 years ago
|
||
Cannot verify this bug until #2946 is fixed.
Updated•26 years ago
|
QA Contact: 3847
Reporter | ||
Updated•26 years ago
|
Status: RESOLVED → REOPENED
Reporter | ||
Comment 3•26 years ago
|
||
You still have an error on this page. The following:
--> <!-- --> <!-- -- >
.xf { color: yellow; background: red none; }
...should be ignored, but instead it is not: the space in "-- >" is, I think,
being ignored. See also the closely related bug #3261.
Reporter | ||
Updated•26 years ago
|
Resolution: FIXED → ---
Assignee | ||
Updated•26 years ago
|
Status: REOPENED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → WONTFIX
Assignee | ||
Comment 4•26 years ago
|
||
Whitespace between the "--" and the ">" is explicitly allowed by the HTML4.0
spec. So we allow it in CSS too.
Reporter | ||
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 5•26 years ago
|
||
O...k...
I have followed this up in www-style. This means that you effectively pass
this test. Verifying wontfixed.
You need to log in
before you can comment on or make changes to this bug.
Description
•