- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 08 Jan 2019 15:18:40 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 8 January 2019 23:19:02 UTC
There is intentional no way to accomplish this. Elements are supposed to accept arbitrary light DOM, and react to it, like all built-in elements do. They should not cause any light DOM children to "sprout into existence" upon creation/connection. In other words, HTML elements in general, and custom elements in particular, are not meant as "template macros" that expand into larger portions of DOM. They are a single piece of DOM---an element---whose consumers control their children, attributes, etc. This is, of course, why we introduce shadow DOM: so that element creators can add arbitrary shadow-children which are under the _element_'s control, instead of the element _consumer_'s control. Hope this helps! -- 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/781#issuecomment-452487265
Received on Tuesday, 8 January 2019 23:19:02 UTC