Aryeh Gregor wrote:
> 2009/2/25 Andrey Mikhalev <amikhal@abisoft.spb.ru>:
>> how about these reasons:
>> http://www.w3.org/TR/html401/types.html#type-id
>> http://www.w3.org/TR/REC-xml/#id
>>
>> if good enough, you have to use css escapes or fix html5 spec ;)
>
> I don't understand the relevance. CSS should support HTML5 as well as
> HTML4 and XML. Clearly #123456 wouldn't match anything in a
> conformant HTML4 or XML document, but it might match something in a
> conformant HTML5 document, so why require the extra trouble of
> escaping the first character for HTML5 authors?
Let me answer that question with another question.
How many out of how many browsers fail this test?
http://www.w3.org/Style/CSS/Test/CSS2.1/current/html4/ident-008.htm
Mozilla, Opera, and Safari have all converged on passing this test.
Does it really make sense to change that now?
~fantasai