W3C home > Mailing lists > Public > www-style@w3.org > January 2013

Re: Selector Parsing for Selectors API

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 15 Jan 2013 11:05:57 +0100
Message-ID: <50F52A05.60307@lachy.id.au>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: www-style <www-style@w3.org>
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
Received on Tuesday, 15 January 2013 10:06:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:25 UTC