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: Julien Richard-Foy <julien@richard-foy.fr>
Date: Tue, 30 Aug 2011 11:32:04 +0200
Cc: Aryeh Gregor <ayg@aryeh.name>, public-webapps@w3.org
Message-Id: <99138B04-9C4C-49F5-863A-64C9CEE9B27D@richard-foy.fr>
To: Jonas Sicking <jonas@sicking.cc>
On Aug 30, 2011, at 10:33 AM, Jonas Sicking 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 think itís better to return an immutable object (mutable objects are source of programming errors). But this immutable object should have traversing method (forEach, map, filter, etc.).

Received on Tuesday, 30 August 2011 09:32:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:23 UTC