- From: Dave Rupert <notifications@github.com>
- Date: Wed, 12 Feb 2020 07:16:18 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 12 February 2020 15:16:31 UTC
For me, I think the "slot hoisting" is weird and/or counterintuitive. I also wonder what happens when I need 10x `<host-elements>` on the page. Do I provide 10x styles and and templates and slots? Not to bikeshed too much, but I think lots of people would prefer auto-instantiating Custom Elements from a single template like... ``` <template customelement="host-element" shadowroot="open"> <style>shadow styles</style> <h2>Shadow Content</h2> <slot></slot> </template> <host-element> <h2>Light Content</h2> </host-element> ``` Then from a SSR authoring standpoint, I could `<?php include('host-element.php') ?>` once at the top of my document and author freely. -- 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-585254228
Received on Wednesday, 12 February 2020 15:16:31 UTC