W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2013

[Bug 5851] Consider adding .toArray() on NodeList and HTMLCollection

From: <bugzilla@jessica.w3.org>
Date: Thu, 04 Apr 2013 18:56:54 +0000
To: www-dom@w3.org
Message-ID: <bug-5851-4009-MoXyfxDutw@http.www.w3.org/Bugs/Public/>

Erik Arvidsson <arv@chromium.org> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #12 from Erik Arvidsson <arv@chromium.org> ---
NodeLists should implement the iteration protocol of ES6 so one can do

  for (let node of nodelist) { ... }

as well as,

  let array = [...nodelist];

but also an API call,

  let array = Array.from(nodelist);

These should be enough to not want to add a toArray method at this point.

You are receiving this mail because:
You are on the CC list for the bug.
Received on Thursday, 4 April 2013 18:57:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:02 UTC