Re: Selector Parsing for Selectors API

On 2013-01-15 07:01, Tab Atkins Jr. wrote:
>> http://dev.w3.org/csswg/selectors4/#scoping
>>
>> Firstly, the example in this section states that element.find() uses
>> scope-contained selectors like scoped stylesheets in HTML.  But it
>> doesn't. It uses scope relative selectors. These are different because
>> .find() needs to be able to match elements that are not descendants of
>> the context object.
> 
> Sorry, I believe that was an oversight, since that example was written
> before we added scope-relative.  Fixed now.

You need to separate scoped stylesheets from the API.  HTML scoped
stylesheets use scope-contained by default. find() uses scope-relative.
 matches() uses a variant of scope-relative that isn't yet defined there.

-- 
Lachlan Hunt
http://lachy.id.au/
http://www.opera.com/

Received on Tuesday, 15 January 2013 10:06:20 UTC