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

I ran into this today, it would be really nice to just be able to do

```javascript
for (textNode of document.createTreeWalker(root, NodeFilter.SHOW_TEXT)) {
  /* do something with text nodes */
}
```

without having to think about while loops, next nodes, iterators, generators, etc

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

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

Received on Wednesday, 21 August 2024 17:03:42 UTC