Re: [WICG/webcomponents] Scoped Custom Element Registry: Moving elements with shadow roots between documents (#907)

> Note that we already want registries to be settable so that script can add a registry to a declaratively created shadow root. With that the behavior of moving a shadow root to a new document can work similarly to declarative created shadow roots - the registry is set to an empty registry and can be replaced later by script, in this case probably in the `adoptedCallback`.

We definitely don't want a scoped registry to be settable everywhere. That will lead to all sorts of havocs like changing the registry of a custom element in the middle of constructing or upgrading an element.



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

Received on Tuesday, 20 April 2021 03:31:26 UTC