Re: [w3c/webcomponents] Add Scoped CustomElementRegsitry explainer (#865)

In previous drafts registries were inherited through the DOM hierarchy. Is this intentionally out of the current proposal? I think it's a good thing, but just making sure.

If an element is in one shadow root and moves to another shadow root, it's element definition is still the one it received from the initial shadow root, correct? That wasn't fully clear to me from the wording.

For the list in `Why do developers need scoped custom element registries?` I think there are two more benefits:
- Scoped registries allow creating stronger associations between a web component and it's dependencies. Right now we need to rely on side effects on the global registry. It's easy to forget importing a component but not notice it because another file has already imported it.
- Scoped registries allow creating tree-shakable component libraries by exporting only classes 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/pull/865#issuecomment-589807397

Received on Friday, 21 February 2020 19:48:03 UTC