Closed Bug 149385 Opened 23 years ago Closed 23 years ago

ID selectors should not be allowed to begin with digits

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 18936

People

(Reporter: madhur, Assigned: dbaron)

References

()

Details

According to http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-identifier "# In CSS2, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [A-Za-z0-9] and ISO 10646 characters 161 and higher, plus the hyphen (-); they cannot start with a hyphen or a digit" Go to the above mentioned url. You will notice that the ID selector starting with a digit is getting recognized as a valid identifier. This bug is related to bug 12385. I was thinking of writing my comments in that bug versus opening a new one. bug 12385 mentions that the CLASS SELECTOR can not start with a hyphen, whereas, i am highlighting the bug also exists in the ID SELECTOR. I suppose this bug can not be classified as a dup of bug 12385, but, as a dependent of bug 12385. I see that Opera 6.01 has the right implementation of the CSS2 identifiers. IE 5.5 behaves in the same way as mozilla1.0 does.
Dupe of bug 18936, which labels this as an error in the standard. *** This bug has been marked as a duplicate of 18936 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
VERIFIED DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.