W3C home > Mailing lists > Public > www-style@w3.org > March 2008

[CSS 2.1] Scope of identifier definition in Section 4.1.3

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Wed, 12 Mar 2008 22:03:59 +0000
Message-ID: <47D8534F.5080902@googlemail.com>
To: W3C Emailing list for WWW Style <www-style@w3.org>

The prose description of identifiers in the CSS 2.1 specification says:

> In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-z0-9] and ISO 10646 characters U+00A1 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, or a hyphen followed by a digit. Identifiers 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".


The next definition begins:

> In CSS 2.1, a backslash (\) character indicates three types of character escapes.

It would have been helpful to this reader, at least, if it were equally 
clear that the prose was talking only about identifiers in CSS 2.1 not 
"CSS" generally, where according to the tokenization rules identifiers 
may contain characters of octal 200 (U+0080) and higher (i.e. a 
substantially wider set):


Benjamin Hawkes-Lewis
Received on Wednesday, 12 March 2008 22:04:14 UTC

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