Re: Recommended practice on selector compatibility

On Wed, 4 Dec 2002, Christian Roth wrote:
>>
>> By following the escape with a space (which is ignored), as in:
>>
>>   "\0041 B"
>>
>> ...which is identical to:
>>
>>   "AB"
> 
> Does this actually work in CSS1?

No (as you say, CSS1 doesn't expect a space after escapes) but that
doesn't matter, because all the major browsers support the CSS2 way:

   http://www.hixie.ch/tests/adhoc/css/parsing/escaping/003.html

There aren't any CSS1 compliant UAs to my knowledge.

(Note: IE5 and Konqueror suck big time and get both the CSS1 and CSS2 ways
wrong. I think they might not support escapes at all. On Windows, Opera,
Mozilla, and IE6 pass it as CSS2 UAs.)

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 4 December 2002 15:36:07 UTC