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

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

From: Brian Kardell <bkardell@gmail.com>
Date: Tue, 15 Nov 2011 09:13:17 -0500
Message-ID: <CADC=+jekXvqUGLVop4fQ+QkQYhRqzYRWE2VnEpGv=LnMSQ==ow@mail.gmail.com>
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Cc: Jonas Sicking <jonas@sicking.cc>, John Resig <jeresig@gmail.com>, Alex Russell <slightlyoff@google.com>, Paul Irish <paulirish@google.com>, Webapps WG <public-webapps@w3.org>, "Tab Atkins Jr." <jackalmage@gmail.com>, Yehuda Katz <wycats@gmail.com>
> Right now, the spec does however handle that use case by doing this:
>
>  document.querySelectorAll(":scope .foo", x);
>
> Where x is either an individual element, or an Array, NodeList or
numerically indexed object containing 0 or more Elements.
>
> (It does however limit the result only to elements that are in the
document, and any disconnected elements in the collection x would not be
found.)
>
>
What spec are you referring to? I've never seen that and I am having
trouble finding it now.
Received on Tuesday, 15 November 2011 14:13:53 GMT

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