Re: [whatwg/dom] Consider support for ES2015 iterator protocol for NodeIterator (#147)

To me it's one of those areas where it's not used often but when it's needed there are no alternatives (same for TreeWalker) - that I know of. 

I'm happy to put the work in to define what `iterable<Node>;` on both would do, along with browser patches. I'm also happy to modernise both APIs to become constructors, and maybe while we're at it clean up the whatToShow/filter params. Alternatively if you think there's a better direction to go in, for example defining a new mechanism for iterating over nodes, I'm happy to pursue that.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/147#issuecomment-1727252908
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/147/1727252908@github.com>

Received on Wednesday, 20 September 2023 08:45:10 UTC