W3C home > Mailing lists > Public > public-webapi@w3.org > April 2008

Re: [selectors-api] Leading and Trailing Whitespace in Selectors (was: Handling :link and :visited Pseudo Classes)

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 18 Apr 2008 09:18:07 +0200
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Cc: public-webapi <public-webapi@w3.org>
Message-ID: <8kig04d09f0pe57hel1vctmte7m6o5mgj7@hive.bjoern.hoehrmann.de>

* Lachlan Hunt wrote:
>3. Add a requirement to Selectors API to trim leading and trailing white
>    space before processing the selector.

This is likely the preferable option, allowing white space in the
selector would require changing the overall CSS grammar to remove
the ambiguity (does the white space around a selector belong to
the selector, or the style sheet), or require adding a production
for use only in contexts other than style sheets.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 18 April 2008 07:18:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 18 April 2008 07:18:46 GMT