- From: Derek <notifications@github.com>
- Date: Sat, 18 Jul 2015 16:27:03 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Saturday, 18 July 2015 23:27:33 UTC
Anything that you would want to parse differently than 'normal' HTML can be shoved into a '<script type="my-format">' and if a custom element author wanted to make use of that, they could choose how to do that for their particular element -- whether that means instructing consumers to make it a child element, or provide it the ID of the script element, or whatever. As for the ability to specify a valid content model, that's kind of what the shadow DOM already aims to provide. If a component author wants to move invalid children (i.e. children not matching a slot or content selector) to the outside of the element instead of just ignoring them (like what you mentioned with tables and forms) they *can* do that, although it seems pointless. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/113#issuecomment-122604473
Received on Saturday, 18 July 2015 23:27:33 UTC