Open
Description
What problem are you trying to solve?
Certain elements, such as <li>
or <option>
are only permitted within certain element types. Should this perhaps be expanded to custom elements? Many use cases where a custom element may reasonably want to slot these.
What solutions exist today?
Currently they need to invent their own elements (e.g. <sl-option>
) that provide no functionality, and just mirror the API of these.
How would you solve it?
If there is no parser weirdness, allow any element to have a custom element as a parent. @annevk thought that sounds reasonable, with that caveat.
Anything else?
No need to do it all at once, it could be done one element at a time, starting from <li>
and <option>
, which are the ones I most frequently needed to slot personally.