W3C home > Mailing lists > Public > www-style@w3.org > December 2002

Re: Underscore problem

From: Etan Wexler <ewexler@stickdog.com>
Date: Wed, 25 Dec 2002 04:35:33 -0500
Message-ID: <1509979815.20021225043533@stickdog.com>
To: www-style@w3.org, Seph Mohamed Soliman <seph@clanhost.dk>

Seph Mohamed Soliman wrote to <www-style@w3.org> on 23 December 2002
in "Underscore problem"

> [...] I was somewhat sad to find out that the common underscore ("_")
> was non-valid in classnames in CSS.

Underscore (officially "low line", U+005F) is perfectly valid in class
name selectors when properly escaped.  Thus I could match elements in
the class my_class with the valid selector {.my\_class} (note that the
brackets are delimiters for the prose, not part of the selector).
>  So I now ask you: Why do you not allow underscores to be a part of
> classnames?

According to Bert Bos, it was an oversight.  For the record read his
message, "Re: Is there a way..." (11 April 2001;
<mid:15060.32418.828207.879369@lanalana.inria.fr> /

> I heard something about that the character "dash" ("-") is valid

I heard that the World Wide Web Consortium makes its technical
reports, corrections to technical reports, and mailing list archives
consistently available to anyone, anywhere on the Web, free of charge.
 As these materials include the normative, complete CSS
 specifications, you might want to check them:    

Etan Wexler <mailto:ewexler@stickdog.com>
Received on Wednesday, 25 December 2002 05:34:58 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:04 UTC