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

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