News for hackers. Stuff that matters.
Re:The right tag for the job: why you should use semantic HTML by lmm on Sunday June 06, 2021 @11:01PM (#27418563)
The cost of doing accessibility is the cost of doing accessibility testing. If you're not actually testing your accessibility work, using a button instead of a div is pissing in the wind.
Re:The right tag for the job: why you should use semantic HTML by goto11 on Monday June 07, 2021 @05:50AM (#27420731)
Surely a button is more accessible than a div regardless?
Re:The right tag for the job: why you should use semantic HTML by lmm on Monday June 07, 2021 @11:18PM (#27430284)
Maybe, maybe not. ("Surely" using the browser's CSS animations would be more efficient than reimplementing them yourself in JavaScript - but if actually you benchmark it, the opposite is true). If you're not actually testing it, how could you possibly know?