Re: [whatwg/dom] Extension only API to query across shadow trees (Issue #1321)

So in terms of the actual API shape, I'm thinking that we want some kind of a way to query across shadow boundaries because iterating over each element and checking the existence of a shadow root is rather expensive. Maybe this could be a new option to `querySelector` & `querySelectorAll`? e.g. `querySelector(':host', {composed: true})`.

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

Message ID: <whatwg/dom/issues/1321/2454065576@github.com>

Received on Monday, 4 November 2024 08:18:56 UTC