W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2011

Re: What type should .findAll return

From: Rick Waldron <waldron.rick@gmail.com>
Date: Fri, 11 Nov 2011 20:52:51 -0500
Message-Id: <EBFDAC54-BE88-424E-9C53-AB4B63F3F4D7@gmail.com>
Cc: Jonas Sicking <jonas@sicking.cc>, Allen Wirfs-Brock <allen@wirfs-brock.com>, Boris Zbarsky <bzbarsky@mit.edu>, "public-script-coord@w3.org" <public-script-coord@w3.org>, public-webapps <public-webapps@w3.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
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.


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:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:04 UTC