Re: [WICG/webcomponents] [scoped-registries] Finding a definition for disconnected elements (Issue #1040)

> element2.querySelector('other-element'); // Is this OtherElement2 or OtherElement3?

Using the logic I'm proposing:

1. `element2` is customized in `registry2` so it is `OtherElement3`.
2. `element2` is then attached to `element1` in `registry1` which means its "active registry" becomes `registry1`.
3. Setting `element2.innerHTML` uses its "active registry," so `element2.querySelector('other-element')` is `OtherElement2` from `registry1`.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1040#issuecomment-2489914003
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/1040/2489914003@github.com>

Received on Thursday, 21 November 2024 02:05:05 UTC