11ty / webc

Single File Web Components
MIT License
1.3k stars 36 forks source link

Avoid overloading web standard slots? #204

Open mayank99 opened 3 months ago

mayank99 commented 3 months ago

Now that declarative shadow DOM is available cross browser, it might be a good idea to respect <slot>/slot= inside WebC templates.

Web's own slots could be renamed to something like <webc:slot>/webc:slot=.

Similarly, WebC could avoid doing special handling of <template> by default. I've encountered very strange issues when creating WebC wrappers over <template shadowrootmode="open">.

See also: #185