News for hackers. Stuff that matters.
Re:The right tag for the job: why you should use semantic HTML by extra88 on Monday June 07, 2021 @08:27AM (#27421737)
Adding an ARIA role only adds the role, you'd then have to add more to name the element (in place of the missing <label>), to put the element in the tab order, and JavaScript event listeners to handle keyboard input correctly. Doing all that is more complex than using a style reset on an input element and even if you do it all correctly, it's less robust.

There are no comments on this comment yet.