News for hackers. Stuff that matters.
Re:Just Use a Button by randyrand on Friday October 31, 2025 @03:57PM (#45776048)
All of those seem like examples of things you’d want your screen reader to tell you about.
Re:Just Use a Button by zahlman on Friday October 31, 2025 @07:11PM (#45777730)
Sure.

What is the screen reader's plan for determining the purpose of the attached JavaScript?

Re:Just Use a Button by randyrand on Thursday November 06, 2025 @04:46PM (#45840866)
Same as a button. Read the text in the element. If no text, skip it or say "clickable".

I'm not arguing a div is better. I'm just saying screen readers could announce a div with an onclick if they wanted to.