Re: Recommended practice on selector compatibility

Christian Roth writes:

> One question however remains:
> 
> >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? I have read the relevant portion in the
> spec, and - contrary to the one in CSS2 - it does not say anything about
> one single trailing space after an escape needing to be ignored. Also,
> the grammar does not indicate this in any way.

In theory, you can do without the space if you escaspe the "B" as
well:

    \41\42

> 
> Suppose a class name of A*B, where * is the bullet character 0x2022, and
> we have it in the XML instance like <par class="A&#8226;B" />.
> 
> Can I use "A\2022 B" for both, CSS1 and CSS2? Will the CSS1 comliant
> parser correctly drop the single space before "B"?

Or, using the same trick as above: A\2022\42



Bert
-- 
  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos/                              W3C/INRIA
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France

Received on Thursday, 5 December 2002 11:18:57 UTC