Closed
Bug 475217
Opened 16 years ago
Closed 16 years ago
CSS parser accepts "@namespace url(x" -- missing close paren at EOF
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: jruderman, Unassigned)
Details
(Keywords: testcase)
Attachments
(2 files)
Firefox's CSS parser doesn't mind the missing ")" as long as there's an EOF right there: @namespace url(x is accepted and turned into @namespace url(x); (I'm just guessing this is a bug. Safari and Opera don't seem to support .cssRules for @namespace, so it's hard for me to tell what they do.)
Reporter | ||
Comment 1•16 years ago
|
||
Similarly, Firefox seems fine with an unclosed quote at the end of the file: @namespace '
Reporter | ||
Comment 2•16 years ago
|
||
I found this more through accident than through fuzzing. If this is a bug, I can have the fuzzer test for some invariant like "adding \n at the end shouldn't affect the result of parsing" to look for more bugs like it.
We're supposed to be ok with these, I think, although it's a relatively recent change in the spec.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
In particular, see http://www.w3.org/TR/CSS21/syndata.html#parsing-errors -- the parts about "Unexpected end of style sheet" and "Unexpected end of string".
You need to log in
before you can comment on or make changes to this bug.
Description
•