-
-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels on an element from aria-label and/or title should be read #1362
Comments
Comment 1 by jteh on 2011-02-09 22:15 |
Comment 2 by dmazzoni on 2011-02-09 22:44 http://www.w3.org/TR/wai-aria-implementation/#mapping_additional_nd_te FWIW, JAWS/Firefox and VoiceOver/Safari both seem to have alternative text attributes (title and aria-label) override, so I'm tempted to follow their example. Otherwise there's no way for a web developer to design a truly accessible site - sometimes the text content is meaningless to a screen reader user, and we should allow web developers a way to strongly hint this. I don't think the text content should be thrown away, it should be available to someone who wants more information about an element. My suggestion would be to make the label the default spoken description, if present. |
Comment 3 by jteh (in reply to comment 2) on 2011-02-09 23:16
Not quite. You could wrap the meaningless text in an aria-hidden div. However, for various reasons, aria-hidden is difficult to support (and I question whether it should exist at all). Still, that might be a better option which we should perhaps consider.
"Default spoken description" is not really a concept that buffers support, since a buffer is just a big block of navigable text. |
Comment 4 by aleksey_s (in reply to comment 3) on 2011-02-10 00:25
If that element has role of button and we know exactly that it's labeled, why we might need to care about its content? Isn't it enough to render that as a button with name set to its label in the buffer? |
Comment 5 by dmazzoni on 2011-02-10 00:34 I'm arguing that the content in the virtual buffer should be the label, because that's what the web developer specified. However, if the user wants to get more information about the current element, NVDA ought to be able to query the element that produced that bit of text in the virtual buffer and get the text content. Since this would only be done on-demand, there wouldn't be a performance penalty. |
Comment 6 by jteh (in reply to comment 4) on 2011-02-10 02:10
Content and label are two very different things. I agree that they're one and the same for a button, but what about a div with no role or some other role? I would rather not make specific exceptions for specific types of controls; it makes the code very complicated and means we have to support each type of widget differently. We're supposed to be able to avoid that sort of stuff with accessibility APIs. :) That's why I'm trying to find a more generic solution. |
Comment 7 by jteh on 2011-07-07 10:11 |
Reported by dmazzoni on 2011-02-09 21:43
In Google Books, we used the following markup to try to provide an accessible label for buttons whose button text is a nonspeaking character (in this case, a unicode left-arrow character).
Other screen readers speak "Previous Page", NVDA does not unless you press NVDA+tab. Tested with Google Chrome 10 & Firefox 3.x on Windows XP & Windows 7.
Blocked by #1354
The text was updated successfully, but these errors were encountered: