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: Mon, 29 Aug 2011 12:40:06 -0400
Message-ID: <CAKA+AxkUAFEVkvFrGW27u2rTR3EVULwfGeo1Z1ap9N=sLNTP3A@mail.gmail.com>
To: Jonas Sicking <jonas@sicking.cc>
Cc: Julien Richard-Foy <julien@richard-foy.fr>, public-webapps@w3.org
On Thu, Aug 25, 2011 at 7:17 PM, Jonas Sicking <jonas@sicking.cc> wrote:
> .push and .pop are generic and work on anything that looks like an
> Array. However they don't work on NodeList because NodeList isn't
> mutable.
>
> . . .
>
> None of these are *mutable* functions.

Oh, right.  I misunderstood you.  Yes, obviously we wouldn't expose
things like .push or .pop on NodeList, since they wouldn't make sense.
 But we should expose things like .forEach, etc.  Any reason not to?
Received on Monday, 29 August 2011 16:40:55 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:47 GMT