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 00:15:57 +0100
To: "Maciej Stachowiak" <mjs@apple.com>, "Jonas Sicking" <jonas@sicking.cc>
Cc: "Boris Zbarsky" <bzbarsky@mit.edu>, "Web APIs WG (public)" <public-webapi@w3.org>
Message-ID: <op.t7038vlp64w2qv@annevk-t60.oslo.opera.com>

On Sat, 15 Mar 2008 00:04:34 +0100, Maciej Stachowiak <mjs@apple.com>  
> On Mar 14, 2008, at 1:56 PM, Jonas Sicking wrote:
>> The alternative, defining another set of methods would be something  
>> that we could do, but that solution feels a lot less appealing.
> I agree, :scope seems more elegant, and parallel methods can't handle  
> the "> span" immediate children use case very nicely.

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.

(An alternative idea might be to make :root match the subtree root in case  
of "scoped" selectors.)

Anne van Kesteren
Received on Friday, 14 March 2008 23:16:42 UTC

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