-
Notifications
You must be signed in to change notification settings - Fork 125
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
value of spinbutton #1716
Comments
is this not an author guidance issue (apg), or potentially an aria in html issue? if used on a native HTML element there will always be a value, so it's not really applicable there. But if someone is making a truly custom ARIA Worth noting that I did see chrome/edge return a value of '3' per your code example. the value returned was 0 and macOS VO announced the value as zero. (can't check other browsers presently). As one action item i've already created the necessary ARIA in HTML issue to address this there. We can decide what else to do, if anything, during the next triage of issues. |
I don't think so. My point is rather
Therefore, the following would be good:
And for all elements whose value can be determined from the text content, it would still have to be specified which rules apply when determining the text content, i.e. how does aria-hidden, aria-owns, aria-label etc. affect the text content (should there be similar rules there as for determining the accessibile name)? |
@scottaohara Looking at w3c/html-aria#409, I think it is a misunderstanding: I was not talking about |
Test results: https://codepen.io/jaws-test/pen/RwxpjwP Example 3 and 4, which do not work in Chrome, are based on the examples from @mcking65 at #812. Either they are no longer allowed or Chrome makes a mistake here. I.e. it should also be clarified whether it is allowed that a spinbutton is a widget role where a child element and not the widget itself gets the focus |
Thanks for all the extra info there. I understand better what you mean now. |
Can this be tackled as part of accname#184 |
ARIA spec for spinbutton::
I think this is problematic because if
role=spinbutton
is on the HTML<input>
, then this can have avalue
and the HTML attribute always takes precedence over the ARIA attribute. I.e. an ARIA attribute is then unnecessary and ifaria-valuenow
andvalue
have different values, it is theoretically so thatvalue
wins andaria-valuenow
is ignored, but practically it is so that here every browser does something different and the screen readers in turn ignore the information of the browsers to the Accessibility API, so that a big chaos arises.In addition, it could be considered whether a value could also result from the text content for spinbuttons that are not located at an
<input>
, and thusaria-valuenow
would then also be superfluous. Like withrole=textbox
:<div role=spinbutton tabindex=0>3</div>
.This is also interpreted differently by browsers (in Firefox this spinbutton has no value, in Chrome the value is 3).
The text was updated successfully, but these errors were encountered: