Re: [WICG/webcomponents] [scoped-registries] Interaction with declarative shadow DOM (#914)

> the elements in the root are effectively no longer defined relative to the root from which the registry was removed, thus the no-longer-defined elements should be downgraded

This does not necessarily follow. It could be decided that if a registry changes that already upgraded elements are left as-is.

There is a tension between trying to put the _shadow_root_ into the state it would have been if it was created with the new registry (no element upgraded from previous registries), and trying to put each individual _element_ into the state it would have been if it was created with the new registry (no orphaned instance properties, event listeners, attributes, shadow children, etc.). I can see arguments either way, as well as one that says because of the tension the registry should not be changeable, but only go from undefined to defined at most once.

-- 
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/914#issuecomment-804199633

Received on Monday, 22 March 2021 16:19:02 UTC