- From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
- Date: Wed, 12 Mar 2008 22:03:59 +0000
- 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". http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier 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): http://www.w3.org/TR/CSS21/syndata.html#tokenization -- Benjamin Hawkes-Lewis
Received on Wednesday, 12 March 2008 22:04:14 UTC