Closed
Bug 126414
Opened 23 years ago
Closed 23 years ago
Class names starting with digits not parsed correctly
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: caillon, Assigned: dbaron)
References
()
Details
Attachments
(1 file)
|
615 bytes,
text/html
|
Details |
* In CSS1, a class name could start with a digit (".55ft"), unless it was a
dimension (".55in"). In CSS2, such classes are parsed as unknown dimensions (to
allow for future additions of new units). To make ".55ft" a valid class, CSS2
requires the first digit to be escaped (".\55ft")
We correctly do not parse .1st { } but we incorrectly don't parse .\2nd { }
Testcase coming up.
| Reporter | ||
Comment 1•23 years ago
|
||
Comment 2•23 years ago
|
||
You can't backslash escape digits. Works if you use \32.
bug is invalid, the backslash should be followed by the iso10646 code of "2",
not by "2" itself.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
| Assignee | ||
Comment 4•23 years ago
|
||
Right, there's an incorrect example in the CSS spec. See
http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata.html#x49
Comment 5•23 years ago
|
||
v (this error in the spec is infamous for continously being propagated even
after rereleases of the spec...)
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•