- From: ja-y-son <notifications@github.com>
- Date: Tue, 30 Sep 2025 11:19:06 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 30 September 2025 18:19:10 UTC
ja-y-son left a comment (whatwg/dom#1407) I'm also seeing the same output as Justin running the above example (Release 221 (WebKit 20622.1.15.19.2)) With Justin's snippet, it seems like a bug on webkit if the original intention was to follow the spec: ``` const aElement = document.createElement('x-a') aElement.shadowRoot.querySelector('my-x-b').customElementRegistry === registryA // true aElement.shadowRoot.querySelector('my-x-b').shadowRoot.customElementRegistry === window.customElements // true ``` Regardless, I think shadow root **not inheriting** host's registry is a better option to ensure the backward compatibility and the isolation between scopes. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/1407#issuecomment-3353307857 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/1407/3353307857@github.com>
Received on Tuesday, 30 September 2025 18:19:10 UTC