Re: [whatwg/dom] Declarative Shadow DOM (#831)

I mean, it seems to me what we really need is a declarative way to instantiate at template at which case we could potentially provide some directive to that node that renders the template inside a shadow DOM.  

I love this idea, but adding a `shadowroot` attribute to an `HTMLTemplateElement` completely changes the semantics of the element. We should have something like `<target template="templateID">` that would clone and insert the template’s contents declaratively. Of course that introduces a scoping problem that would need to be figured out since ids are scoped to the shadow root. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/831#issuecomment-584800239

Received on Tuesday, 11 February 2020 19:07:57 UTC