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/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=5851

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.3.1 : Tuesday, 20 October 2015 10:46:20 UTC