Alan Gresley wrote:

The answer is no. Isn't the css2.1 spec clear enough ?
<http://www.w3.org/TR/CSS21/syndata.html#characters>


This is not correct. You can begin ID and class selectors with numbers.
The only thing is that they must be encoded properly with characters
escapes (the above spec gives details).

<http://css-class.com/test/css/selectors/identifiers-character-encoding2.htm>

The specification says "they cannot start with a digit"; Alan says
"they can start with numbers"; the question is therefore "are there
numbers that are not digits", and Alan is arguing "yes, if the
number is encoded using a character escape" (e.g., \31 to represent
the digit/number "1").

It will take me some time to decide by looking at the formal
parts of the specification whether Alan is correct in his assertion;
perhaps others more familiar with the formal syntax can save
time by answering and/or pointing us at the rule(s) involved.

Philip Taylor
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to