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

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 UTC