W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Re: [selectors-api] Leading and Trailing Whitespace in Selectors

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 09 Jul 2008 16:13:14 +0200
Message-ID: <4874C77A.5040909@lachy.id.au>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: public-webapps <public-webapps@w3.org>

Bjoern Hoehrmann wrote:
> * 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.

Agreed. The spec now defines:

| The implementation must first trim any leading or trailing whitespace
| from the value of the selectors parameter.

-- 
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/
Received on Wednesday, 9 July 2008 14:13:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:27 GMT