This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 155 - CSS1 does not allow underscores in identifiers
Summary: CSS1 does not allow underscores in identifiers
Status: RESOLVED DUPLICATE of bug 219
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 1.0 (show other bugs)
Version: CSS Validator
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact: qa-dev tracking
Depends on:
Reported: 2003-02-27 17:04 UTC by Philippe Le Hegaret
Modified: 2004-11-25 16:00 UTC (History)
1 user (show)

See Also:


Description Philippe Le Hegaret 2003-02-27 17:04:58 UTC
.new_foo {
 color: red;
Parse Error - new_foo { color: red; }
Comment 1 Jeff 2004-02-05 15:38:51 UTC
according to W3 specs, underscore is NOT allowed in class names, and the 
validator should recognize this!  I just got a completely valid stylesheet even 
though some classes had underscores.  I believe it is in the CSS1 specs in 
section 7.1.  This should be rectified.  Thanks.
Comment 2 Etan Wexler 2004-10-27 11:02:34 UTC
Ian Hickson comments on CSS1 in "Re: Proprietary identifier names" (22 February
2003; message to <>;

"There aren't any [CSS1 user agents], so in the real world that really isn't an
important consideration. Any new UAs wouldn't implement CSS1 anyway, they'd
implement the CSS1 profile of CSS2 or CSS3."

Consider the CSS1 Recommendation dead, and let's close this bug. The alternative
is to generate a faithful scanner and parser for CSS1, which would, for example,
have to forbid characters outside the repertoire of ISO 8859-1 yet allow bare
digits at the start of class names. What other details have I forgotten? Who
would be willing to uncover those details? Who would implement them?

Consider the CSS1 Recommendation dead, and let's close this bug.
Comment 3 Etan Wexler 2004-11-25 16:00:05 UTC

*** This bug has been marked as a duplicate of 219 ***