- From: Anne van Kesteren <notifications@github.com>
- Date: Tue, 22 Mar 2016 05:00:54 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Message-ID: <w3c/webcomponents/issues/59/199778881@github.com>
So I'm trying to figure out when we need this complexity and it seems given the restrictions on `attachShadow()` that currently you can never get there. E.g., the original example is ``` <slot> <tr><td>... </slot> ``` meaning the `slot` element's fallback is a row in a table. That means however that the shadow root's host must be a `thead` element (since only children are slotable) or a `table` element in an XHTML context. And neither of those is possible with the current `attachShadow()` restrictions. I'm not opposed to changing the HTML parser so that this kind of thing will be possible in the future once `attachShadow()` becomes less restricted, but I would like everyone to sign of on changing the HTML parser to treat `template` and `slot` nearly identical as it is quite an invasive change that will take me a bit of time (I'm happy for someone else to volunteer too, but since @dglazkov's email in 2012 that doesn't seem to have happened...). --- 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/59#issuecomment-199778881
Received on Tuesday, 22 March 2016 12:01:27 UTC