Hacker News new | ask | show | jobs
by dheera 925 days ago
These websites also keep adding bloat on top of bloat, hell, a goddamn button is 56 layers of nested divs these days instead of just styling the shit out of <button>.

Or they do some batshit insane "polyfill" nonsense that turns the <button> into 56 layers of nested divs behind the hood.

HTML hasn't caught up either, there's no <toggle_switch> that invokes the native toggle switch that every OS already has, devs are forced to mimic the toggle with 85 layers of nested divs.