Re: Publishing Selectors API Level 2 as an FPWD?

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 UTC