Closed Bug 68119 Opened 25 years ago Closed 25 years ago

CSS fails if underscore in class-name

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: whistler, Assigned: pierre)

References

()

Details

When a class-name contains an underscore, like _test or test_test, mozilla ignores the css-style for this class. I took a look at the css-specs http://www.w3.org/Style/CSS/, but did't find anything on how to name classes.
Underscores are _not_ allowed in class names according to the W3 spec (underscore is ISO646 char code 95), see below. I don't have permission to mark this as invalid though, please can someone do this for me. From the www.w3.org site * 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. They can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier "B&W?" may be written as "B\&W\?" or "B\26 W\3F".
Thanks for finding the relevant specs in the w3c site jungle, Bruce :-) Once you have correctly triaged three bugs, like this one, please send me mail and I'll give you the ability to edit the bugs directly :-) Thanks, Fabian.
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
verf. this has been reported many times. :-)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.