W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2010

Re: Publishing Selectors API Level 2 as an FPWD?

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 11 Jan 2010 00:17:53 -0800
Message-ID: <63df84f1001110017id3d5e8dp354a91cdc07494b2@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Sean Hogan <shogun70@westnet.com.au>, Lachlan Hunt <lachlan.hunt@lachy.id.au>, public-webapps <public-webapps@w3.org>
On Sun, Jan 10, 2010 at 11:40 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 1/11/10 1:24 AM, Sean Hogan wrote:
>>
>> That's correct. jQuery's $(element).find("div") is the equivalent of
>> SelectorsAPI2's element.querySelectorAll(":scope div") or
>
> So in fact jquery can simply implement Element.find in terms of
> querySelectorAll by just prepending ":scope " to the selector string, right?

Not if the selector contains a ",". Consider:

$(element).find("div, p")

/ Jonas
Received on Monday, 11 January 2010 08:18:46 GMT

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