Re: [whatwg/dom] attachShadow default custom element registry (Issue #1407)

justinfagnani left a comment (whatwg/dom#1407)

I think the spec here is wrong.

There is no correlation between the scope a custom element is defined in, and the scope it uses for it's own shadow root.

Most element classes today are authored to use the global registry and they import their dependencies assuming that they are self-registering into the global registry. It is entirely possible to define one of these elements into a scoped registry, and it should work fine. This would be true if the element's shadow DOM continues to use the global registry where it's dependencies are defined. It would not always be true if the element's shadow DOM inherits the scope it was defined in, which is out of its control.

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

Message ID: <whatwg/dom/issues/1407/3349508728@github.com>

Received on Tuesday, 30 September 2025 00:33:07 UTC