W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2011

Re: [selectors-api] Return an Array instead of a static NodeList

From: Aryeh Gregor <ayg@aryeh.name>
Date: Tue, 30 Aug 2011 17:25:35 -0400
Message-ID: <CAKA+AxmfwyS8NThFrcaCz=f2UTaMeYwxfJ5wf5LXLXG6fiYaNw@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Julien Richard-Foy <julien@richard-foy.fr>, public-webapps@w3.org
On Tue, Aug 30, 2011 at 4:33 AM, Jonas Sicking <jonas@sicking.cc> wrote:
> My point was that it was a mistake for querySelectorAll to return a
> NodeList. It should have returned an Array. Sounds like people agree
> with that then?

I don't have a problem with that, if it can be changed safely.
However, some things do have to return NodeLists, at least if the
returned list is live.  In that case, it's still useful to have the
Array methods available.
Received on Tuesday, 30 August 2011 21:26:25 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:34 UTC