Re: [whatwg/dom] Option to allow `querySelector` to query shadow roots (Issue #1422)

jakearchibald left a comment (whatwg/dom#1422)

> I think the use-case is pretty different in regards to passing shadow roots

The utility of the API is different, but the pattern of "these are the shadow roots you're allowed to see inside" is the same.

This pattern is also used in [`el.getHTML()`](https://developer.mozilla.org/en-US/docs/Web/API/Element/getHTML), and [resolved to add to `getElementsFromPoint`](https://github.com/w3c/csswg-drafts/issues/10992#issuecomment-2623143244).

Basically, if you're going to propose a different way to give an API visibility into shadow roots, you'll need to justify why it's different to established patterns.

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

Message ID: <whatwg/dom/issues/1422/3823084582@github.com>

Received on Friday, 30 January 2026 10:51:15 UTC