Re: What type should .findAll return

Right, but I'm saying: why create yet more "stuff" in the DOM?

 findAll will return a "NodeArray" while querySelectorAll and friends return static and live NodeLists? No thanks.

/Rick 

On Nov 11, 2011, at 8:38 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

> On Fri, Nov 11, 2011 at 5:35 PM, Rick Waldron <waldron.rick@gmail.com> wrote:
>> Any DOM NodeList/"NodeArray" could be converted into a "real" array by passing to Array.from( array like )
>> 
>> http://wiki.ecmascript.org/doku.php?id=strawman:array_extras
>> 
>> Avoids creating yet another DOM "NodeThing".
> 
> Jonas explains very well why we don't want a "real" Array, but rather
> something that just acts like an Array.
> 
> ~TJ

Received on Saturday, 12 November 2011 01:53:29 UTC