W3C home > Mailing lists > Public > public-webapi@w3.org > February 2007

Re: Proposal: getElementsBySelector()

From: Charles McCathieNevile <chaals@opera.com>
Date: Thu, 08 Feb 2007 12:58:49 +0530
To: Martijn <martijn.martijn@gmail.com>, "Web API public" <public-webapi@w3.org>
Message-ID: <op.tne5qb01wxe0ny@widsith.local>

On Wed, 07 Feb 2007 04:59:14 +0530, Martijn <martijn.martijn@gmail.com> wrote:

>
> On 2/7/07, Maciej Stachowiak <mjs@apple.com> wrote:
>> Is there a major benefit to having a single method that outweighs the
>> performance considerations? I think we should have a better reason for
>> deciding this than "we feel like it".
>
> I don't see why a getElementBySelector is necessary when there is
> alreay getElementById, which one should use if performance is an
> issue.

Because when you can do getElementBySelector('#foo,#bar,.baz') to pick the first 
one of these that appears, or getElementBySelector('body span *'), or something, 
you can't use gEBID ...

cheers

Chaals

-- 
Charles McCathieNevile, Opera Software: Standards Group
hablo español - je parle français - jeg lærer norsk
chaals@opera.com Try Opera 9.1 http://opera.com
Received on Thursday, 8 February 2007 07:29:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:57 GMT