Re: [css-d] Everything looks great...except Safari!

* Philippe Wittenbergh wrote:
>On Aug 16, 2007, at 5:49 PM, Nick Fitzsimons wrote:
>> There's nothing wrong with starting an id with a capital letter:
>> <>
>> "ID and NAME tokens must begin with a letter ([A-Za-z])..."

>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.

The character class [a-z0-9] is meant to be read case-insensitively,
there is nothing wrong with using [A-Z] as the initial character (see
the tokenization rules preceding the section you quote and the grammar
appendix, though I guess the specification should say [a-zA-Z0-9] in-
Björn Höhrmann · ·
Weinh. Str. 22 · Telefon: +49(0)621/4309674 ·
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · 

Received on Thursday, 16 August 2007 11:30:44 UTC