-
Notifications
You must be signed in to change notification settings - Fork 118
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
Attribute with natural language but no language metadata #1365
Comments
@bert-github This is not the only attribute like this. A number of attributes support natural language (aria-label for example). This would indeed be good to document but as this is not a new issue we presume it is ok to address in the next version of the spec. Indeed we believe there may be more language issues which need to be addressed mostly in w3c/accname#56 where there is the potential for mismatched languages between a label and its corresponding form element and we need a rule to determine which language should take precedence. |
@bert-github wrote:
I don't think my comment affects the issue outcome, but FYI this is not a valid assumption. Accessibility APIs are not limited to screen readers on any platform that I am aware of. Even if they were, most screen readers render braille and on-screen text in addition to speech. For example, this string can be visibly exposed to sighted low vision users using the "Hover Text" AT feature on macOS, and also probably to Zoom Text users on Windows. |
IMO, the issue resolution could be either of the following:
|
WG Resolution: second option, add explicit mention of lang inheritance. |
* add lang clarification to translatable attributes section. Resolves #1365 * Removing accidental whitespace line break * editorial nit * carmacleod suggestion: 'value' -> 'attribute value' Co-authored-by: Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> * Change references Co-authored-by: Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> Co-authored-by: James Nurthen <jnurthen@users.noreply.github.com>
The change to the draft specification (in section 6.4 ‘Translatable Attributes’) mostly defines the language of each attribute that contains text. But a few things remain unclear:
Possibly the direction could be taken from the element's ‘dir’ attribute, but, like for the language, that leaves a problem when the attribute's direction is different from the direction of the element's content. E.g., you wouldn't want to set the ‘dir’ attribute on a slider, because it reverses the slider. |
* add lang clarification to translatable attributes section. Resolves #1365 * Removing accidental whitespace line break * editorial nit * carmacleod suggestion: 'value' -> 'attribute value' Co-authored-by: Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> * Change references Co-authored-by: Carolyn MacLeod <Carolyn_MacLeod@ca.ibm.com> Co-authored-by: James Nurthen <jnurthen@users.noreply.github.com>
spinbutton role
https://raw.githack.com/w3c/aria/2020-09_CR/index.html#spinbutton
‘Aria-valuetext’ is an attribute that contains natural-language text, with no way to explicitly set the language. (Writing direction is probably less of a problem, as the content is usually spoken, not displayed.)
The language is probably expected to be inherited from the element. If so, it would be good to mention it. It may be different from the language of the document.
The attribute is not new. It existed already in ARIA 1.1. The only thing new is that in ARIA 1.2 it also applies to elements with role=spinbutton. So this issue probably applies to all occurrences of aria-valuetext and, in fact, to other aria-* attributes that contain text, too.
The text was updated successfully, but these errors were encountered: