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

justinfagnani left a comment (whatwg/dom#1407)

> I'm talking about the instance, not the instance's shadow root. How could the instance for the my-x-b element be the global registry?

It isn't. The instance `my-x-b` is created in the `registryA` registry.

The issue is that the spec seems to say that `my-x-b`'s shadow root inherits the instance's registry, which is `registryA`. That is the part that breaks elements that use the global registry that are then used in scoped registries.

It's step (1) here that's problematic:

> The attachShadow(init) method steps are:
> 
> 1. Let registry be [this](https://webidl.spec.whatwg.org/#this)’s [custom element registry](https://dom.spec.whatwg.org/#element-custom-element-registry).



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

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

Received on Wednesday, 1 October 2025 05:16:59 UTC