W3C home > Mailing lists > Public > www-style@w3.org > December 2002

Re: Recommended practice on selector compatibility

From: Bert Bos <bert@w3.org>
Date: Thu, 5 Dec 2002 17:18:50 +0100
Message-ID: <15855.31850.512638.32501@lanalana.inria.fr>
To: "www-style Mailing List" <www-style@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:17 GMT