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

Re: [selectors api] Why two methods?

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 27 Jan 2007 18:18:45 -0500
To: Martijn <martijn.martijn@gmail.com>
Cc: David Håsäther <hasather@gmail.com>, public-webapi@w3.org
Message-ID: <op.tmt5pje964w2qv@id-c0020.nomadprime.subscribe.loganwifi.com>

On Sat, 27 Jan 2007 18:17:37 -0500, Martijn <martijn.martijn@gmail.com>  
wrote:
>> Given that the latter returns a StaticNodeList you can't do fancy stuff
>> such as lazy evaluation. So they become different in terms of speed.
>
> Well, typically the first thing I do is using a variable, like:
> var x=document.getElementListBySelector("html > p")[0];

Your point being?


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Saturday, 27 January 2007 23:19:04 GMT

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