Earlier quoted context omitted.
The major issue with this is that modern CSS is almost its own job, to the point we used to have Interface Developers at some place I’ve worked (HTML+CSS specialists). I did frontend for over a decade and eventually lost the train on CSS changes, I don’t even know what’s going on there anymore. It’s still awesome, but it’s becoming increasingly silly to ask someone to know modern HTML, CSS, JavaScript, Typescript, so…
When I started dabbling in web development, writing HTML and CSS was already its own job, and professional JavaScript developers basically did not exist. This was before TypeScript, before Node, before Ajax, before React or even jQuery. If anything has exploded in complexity in the intervening years, it's the JavaScript part of the equation. I agree that it's increasingly silly to ask someone to be an expert in all o…
Replacing JavaScript with Just HTML
291–296 of 296 posts
Re: Replacing JavaScript with Just HTML
#292Re: Replacing JavaScript with Just HTML
#293Earlier quoted context omitted.
Tabs, accordion, combobox. There is a whole lot more, these are just the ones I can remember now.
For tabs, see: https://lyra.horse/blog/2025/08/you-dont-need-js/#lyres-and-... As far as I can tell, my implementation there fits the guidelines.
Re: Replacing JavaScript with Just HTML
#294It feels like some variation of this post gets submitted here every week.
Re: Replacing JavaScript with Just HTML
#295Earlier quoted context omitted.
Last I checked that without JavaScript details / summary has accessibility issues. That is, you need JS to add aria-open or similar. It’s odd and frustrating that such an essential tag is not defined to be accessible, afaik.
That's not correct. There is no aria-open attribute and the summary implicitly has the correct ARIA state, aria-expanded, indicating that its details element is either expanded or collapsed. There have been bugs in its implementation, particularly in Safari and differing between mobile and desktop Safari.
Thanks for correcting me.
Re: Replacing JavaScript with Just HTML
#296Earlier quoted context omitted.
Because you need 20x the JS to do the same thing and it’s still not hardware accelerated. These new CSS properties are well supported and will only get better.
click loris
This is the HTML version, it's not susceptible to halted execution, and it is accessible.
Click
loris