- From: Jonathan Kingston <notifications@github.com>
- Date: Mon, 12 Jan 2026 15:08:03 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 12 January 2026 23:08:07 UTC
jonathanKingston left a comment (whatwg/dom#1422)
This seems really well thought out and certainly solves an annoying problem.
---
The one caveat here that the snippet doesn't solve is selectors that cross the boundaries; I think that's very intentional. My guess is the CSS selectors would assist with this optionality in future:
```js
document.querySelectorAll('div button, div :host button', {
shadowRoots: true
})
```
Or:
```js
document.querySelectorAll('div button, div :host button', {
shadowRoots: {
open: true,
selectAcrossRoots: true
}
})
```
In short: I think this is a non issue to solve as part of this proposal.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1422#issuecomment-3740911202
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/issues/1422/3740911202@github.com>
Received on Monday, 12 January 2026 23:08:07 UTC