Closed
Bug 658868
Opened 14 years ago
Closed 14 years ago
After typo in attribute selector [id|="foo] , the rest of the CSS is not executed
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
INVALID
People
(Reporter: rik, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
|
123 bytes,
text/html
|
Details |
Discovered by Lea Verou (https://twitter.com/leaverou/status/72264737185992705).
I think the testcase is self-explanatory.
Why should this be green?
It's red in Opera 11 and IE 7, 8, 9.
Looks like a WebKit bug for me.
On this line:
[id|="foo] {}
you have the invalid string:
"foo] {}
which is terminated by the end of the line (since strings can't span multiple lines). At that point, we're now looking for a ] to match the [ at the start of the line, which we never find, so the rest of the style sheet is part of the attribute selector.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•