W3C home > Mailing lists > Public > www-style@w3.org > August 2007

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

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 16 Aug 2007 13:30:31 +0200
To: Philippe Wittenbergh <emps@l-c-n.com>
Cc: CSS-D <css-d@lists.css-discuss.org>
Message-ID: <65d8c3lngibd6igvqbg2brapu2j71nomem@hive.bjoern.hoehrmann.de>

* 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:
>> <http://www.w3.org/TR/html4/types.html#type-name>
>> "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 · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Thursday, 16 August 2007 11:30:44 UTC

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