Re: [w3c/webcomponents] [idea] Allowing custom element registrations on per-shadow-root basis. (#488)

> Idea: what if registrations are loose? So, for example, `let myForm = new MyForm` just instantiates the element, but there is no tagName associated with it yet. When `myForm` gets attached into, for example, a shadow root with `MyForm` registered to the `my-form` tagName, then the instance gains that name while in that shadow node tree, and therefore selectors that target `my-form` within that node tree would properly target that instance.

That would be really hard to implement in browser engines.

---
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/issues/488#issuecomment-229145694

Received on Tuesday, 28 June 2016 18:50:24 UTC