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: Sat, 27 Aug 2011 00:18:57 +0200
To: public-webapps@w3.org
Message-Id: <201108270018.57664.julien@richard-foy.fr>
> >> That works, but what is the advantage? And .push/.pop or other
> >> mutating functions wouldn't work.
> > 
> > All mutable functions will work (forEach, map, etc.) and bring a better
> > expressiveness to the code.
> 
> Not if he 'this' object is a NodeList.

Yes, sorry I meant all “immutable” functions will work.

Julien
Received on Friday, 26 August 2011 22:23:37 GMT

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