W3C home > Mailing lists > Public > public-webapi@w3.org > March 2008

Re: [selectors-api] Why no querySelector(All) on DocumentFragments?

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 15 Mar 2008 09:40:33 +0100
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <op.t71udv1364w2qv@annevk-t60.oslo.opera.com>

On Sat, 15 Mar 2008 00:30:52 +0100, Boris Zbarsky <bzbarsky@MIT.EDU> wrote:
> Anne van Kesteren wrote:
>> If :scope needs to work matching in implementations might need to  
>> change by the way. Currently matching is only against the subtree. So  
>> <div>.querySelector("div") would only match descendant <div> elements.
> I see no reason for this to change with :scope introduced, to be  
> honest.  Am I missing something?

No, I guess you're right. With <style scoped> it would match the subtree  
root element as well though (parent of <style>), but I suppose that case  
is slightly different anyway.

Anne van Kesteren
Received on Saturday, 15 March 2008 08:40:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:25 UTC