W3C home > Mailing lists > Public > www-style@w3.org > March 2011

Re: [CSS2.1] escapes, characters and parsing

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 25 Mar 2011 07:59:07 +0100
To: Alan Gresley <alan@css-class.com>
Cc: CSS 3 W3C Group <www-style@w3.org>
Message-ID: <8qeoo6t19d9842i052j4k9hmtrm83og1nn@hive.bjoern.hoehrmann.de>
* Alan Gresley wrote:
>I have not broken it down to it's basic parts since I do not know quite 
>what should be happening as it stands. The pertinent CSS is here.
>
>    \p { background: green; }
>    \* { background: gray; }
>    body \2a { background: red; }

Well, `\p` tokenizes as `IDENT` token with value `p`, `\*` tokenizes as
`IDENT` token with value `*` and `body \2a` tokenizes as `IDENT`, `S`,
`IDENT` with values `body`, ` `, and `*` respectively after unescaping.
The selectors would match elements with node name `*`.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 25 March 2011 06:59:38 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:38 GMT