Remix.run Logo
tossandthrow 3 days ago

Neither HTML, nor CSS are naturally untyped.

Actually, React is not typed enough.

Looking at the mozilla docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sp...

You can see that eg. <span /> is not allowed to hold all types of elelemts.

How awsome weould it be, if th type system actually captures this.

zelphirkalt 2 days ago | parent | next [-]

I guess many web developers would climb on a roof and throw stones, because then they really needed to learn HTML and using its elements semantically. And probably many of their web components would no longer type check either, forcing them to reimplement or use simpler elements.

tossandthrow 2 days ago | parent [-]

There was a time where front-end devs would have sat down and cried had they had to make closing tags.

joquarky 2 days ago | parent [-]

Ever heard of XHTML?

There's a reason it's dead.

tipiirai 2 days ago | parent | prev [-]

This is a great idea!