Re: [whatwg/dom] Should TreeWalker be expanded to support shadow roots in support of the selection API? (Issue #1189)

rniwa left a comment (whatwg/dom#1189)

> tree walkers are used in **a fifth of all pages**, exactly because manual traversal of every single node on the page tends to be inefficient

Except most of those usage happens in third party content and the actual usage in first-party resources is 0.58% to 1.63%. That's an order of magnitude smaller.

What are concrete use cases for `NodeIterator` or `TreeWalker` to cross shadow boundaries?

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

Message ID: <whatwg/dom/issues/1189/3533417080@github.com>

Received on Friday, 14 November 2025 15:56:15 UTC