Closed Bug 74845 Opened 23 years ago Closed 23 years ago

W3C CSS2+ class names support underscores (_)

Categories

(Core :: CSS Parsing and Computation, defect, P2)

x86
All
defect

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: jg, Assigned: glazou)

References

()

Details

Attachments

(2 files)

The W3C Errata page at
http://www.w3.org/Style/css2-updates/REC-CSS2-19980512-errata now gives support
for the underscore (_) character in CSS class names.

Example:
   a.foo-bar { text-decoration: underline; }
could now be
   a.foo_bar { text-decoration: underline; }
too.

This apparently needs to be done to be conformant with xml 'name'... Needs to be
added to Mozilla ASAP to prevent more bugs filed by web authors who are already
using _ as IE5 supports it I believe *sigh*.
-> Daniel who says he can do this quickly.
Assignee: pierre → glazman
Keywords: mozilla0.9
moz0.9
Priority: -- → P2
Target Milestone: --- → mozilla0.9
Accepting assignment.

Easy 1-line fix proposed above. Since this errata derives from the XML spec
stating :

  [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar | Extender
  [5] Name ::= (Letter | '_' | ':') (NameChar)*

all NAME identifiers should be able to contain an underscore or start with an
underscore.

r= and sr= needed please.
Status: NEW → ASSIGNED
r=bzbarsky@mit.edu

testcase looks good with the patch.
sr=attinasi
r=pierre
checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified fixed on Linux, can someone do the same on Mac/Win32 please.
verified by testcase
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: