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

We have httparchive! Total number of pages in the dataset is 12,808,711.

- 979,195 = 7,64% of pages use `createNodeIterator()`
- 2,708,575 = 21.15% of pages use `createTreeWalker()`

https://docs.google.com/spreadsheets/d/1AJRajLjk7SvKTjuZMUOsYHobgFVThA5BN-Na2qNoTKA/edit?usp=sharing

From looking at the first bunch it looks like adsense appears pretty frequently.

Reducing to first-party resources, we get:

- 208,801 = 1.63% of pages with first-party `createTreeWalker()` 
- 74,335 = 0.58% of pages with first-party `createNodeIterator()`

https://docs.google.com/spreadsheets/d/1IKPHOVHugHS0pwHvNj6TbpSiIBZM18KpUGI0nLvKmeY/edit?usp=sharing

https://almanac.httparchive.org/en/2022/javascript#fig-45 says last year 0.39% of pages use shadow dom. Assuming an even distribution the pages using both shadow DOM and first-party `createTreeWalker()` would be 0.009% of pages; shadow DOM and first-party `createNodeIterator()` 0.002% of pages.

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

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

Received on Monday, 19 June 2023 18:13:16 UTC