Re: [webcomponents] Parse <slot> like <template> (#59)

I think @hayatoito and also @dglazkov would ideally like to allow these kind of scenarios, as posted by @hayatoito elsewhere:

Light tree:
```
<x-foo>
  <td>...</td>
  <td>...</td>
</x-foo>
```
`x-foo`'s shadow tree:
```
<table>
  <tr>
    <slot>
      <td>fallback</td>
      <td>fallback</td>
    </slot>
  </tr>
</table>  
```
If we want to enable that, we will need to change parsing for both custom and `slot` elements. These are the problems we face:

1. Lack of HTML parser expertise. The experienced developers and specification editors are mostly working on other things and have limited amounts of time.
2. Lots of compatibility hazards that will require trial and error; tweaking the HTML parser is somewhat dangerous

The upside is that it would be quite neat to be able to do the above and make HTML a lot more extensible.

---
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-202330706

Received on Monday, 28 March 2016 10:05:11 UTC