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

Re: What type should .findAll return

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 11 Nov 2011 17:59:46 -0800
Message-ID: <CAAWBYDDyUnP-Ei9Fg0SZ-sL1nsuYA1nKR8y255Qk3Eau1+XVUA@mail.gmail.com>
To: Rick Waldron <waldron.rick@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>
On Fri, Nov 11, 2011 at 5:52 PM, Rick Waldron <waldron.rick@gmail.com> wrote:
> 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.

I'm not sure what you would prefer.  Make findAll return an Array? (We
miss out on a *lot* of cool and useful stuff we could do.)  Make
findAll return immutable live NodeLists? (Ditto, but for different
reasons.)  Change qSA to return a NodeArray or Array? (Would be nice,
but probably not doable for compat reasons.)

Received on Saturday, 12 November 2011 02:00:42 UTC

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