logoalt Hacker News

brazukadev • yesterday at 2:33 PM • 1 reply • view on HN

Components without ShadowDOM not having a slot is the biggest known issue.


Replies

spankalee • yesterday at 5:58 PM

How would you solve that? To this day I've never seen a workable proposal.

Slots need to have a host element to select slotted nodes from. ShadowRoot provides that host. Everyone who I've seen say that it's easy comes up with an ambiguous system that doesn't work in many cases and could never be standardized.

Which is a common problem with most "web components suck" takes - they have no sympathy for standards developers or the difficulty of the problem and somehow assume the spec people are dumb or evil, and they don't do the work to show how something could realistically be better.

➕ show 2 replies