jindw / xmldom

A PURE JS W3C Standard based(XML DOM Level2 CORE) DOMParser and XMLSerializer.
Other
819 stars 265 forks source link

Symbol.iterator on NodeList #189

Closed MoritzKn closed 8 years ago

MoritzKn commented 8 years ago

In the modern browsers it is possible to do:

let myArray = [...doc.getElementsByTagName('foo')]

It would be cool if this package would support this too. Therefore the Symbol.iterator had to be defined on the the NodeList.

jindw commented 8 years ago

it is base on w3c dom level2 . Modifying the interface will lead to compatibility issues