Open smhigley opened 1 year ago
I think you are right: according to Accname, in your example the button label should be "Something". However, what the browsers do feels more correct - i.e. maybe the accname should be adjusted here rather than changing the behavior of the browsers.
Problem in the AccName is also that the example 3 is wrong:
This was discussed in last week meetings: https://www.w3.org/2023/01/12-aria-minutes#t05
Using the accName for the button in the following markup as a reduced example:
My reading of the accname spec is that the following should happen for the button:
inputId
<label>
This is not the case for Firefox, Chrome, Edge, or Safari in my testing. All of them return the value of the input as its text alternative when within an
aria-labelledby
traversal instead of the name derived from the<label>
. My guess is that browsers are following step 2C here, even though the input is directly referenced, and not within a parent label.I'd like to confirm whether the correct behavior is for the button to have the accName "Something" here, or whether the current browser behavior is correct.