W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: QSA, the problem with ":scope", and naming

From: Ojan Vafai <ojan@chromium.org>
Date: Tue, 18 Oct 2011 20:39:18 -0700
Message-ID: <CANMdWTv9i86yEOXReJboSHz+K33jDknHiqcuAGVLHgwatB+ZHw@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-webapps@w3.org
Overall, I wholeheartedly support the proposal.

I don't really see the benefit of allowing starting with a combinator. I
think it's a rare case that you actually care about the scope element and in
those cases, using :scope is fine. Instead of element.findAll("> div >
.thinger"), you use element.findAll(":scope > div > .thinger"). That said, I
don't object to considering the :scope implied if the selector starts with a

On Tue, Oct 18, 2011 at 6:15 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 10/18/11 7:38 PM, Alex Russell wrote:
>> The resolution I think is most natural is to split on ","
> That fails with :any, with the expanded :not syntax, on attr selectors,
> etc.
> You can split on ',' while observing proper paren and quote nesting, but
> that can get pretty complicated.

Can we define it as a sequence of selectors and be done with it? That way it
can be defined as using the same parsing as CSS.

> A minor point is how to order the
>> items in the returned flattened list are ordered (document order? the
>> natural result of concat()?).
> Document order.


> -Boris
Received on Wednesday, 19 October 2011 03:40:11 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:36 UTC