|
|
|
|
|
by nostats
17 days ago
|
|
Is this an arcane rule? "Don't label divs" and "aria-label is for when there's no content in the DOM that can be read" are pretty simple rules. Labels are ways to tell a screen reader about content it can't read, like an image or icon. Pretty straightforward. It's way way simpler than, say, var hoisting in JavaScript. |
|
Not be able to aria-label anything and have the screen reader say ok I take that in priority seems badly thought out.
Also - screenreaders could have a setting to read aria-label on divs and then read the content if the user wanted it. If the user determined the labels on divs were inadequate, they would flip this setting, if they decided this seems to be working well they would just go with what the site does.