-
Notifications
You must be signed in to change notification settings - Fork 27
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 should map to aria-valuenow for input[type=range] #314
Comments
Agreed there's a missing ARIA mapping here, but maybe the value attribute of input row should be split into 2 rows, one for "entry type input elements" and one for "button type input elements"? Then the row for "entry type input elements" could map to aria-valuenow, and (maybe??) the row for "button type input elements" could
I also think the input types should be listed explicitly, to eliminate confusion (by making things abundantly clear), e.g.
(I'm ignoring hidden because it has no role and is not mapped, but I don't know if anything needs to be mapped if it has a value?) As a final note, I see that the mapping for AX just says:
... and I can't help wondering if AX should have the same "value if entry, label if button" mapping text as Win/ATK. Edit: Yes, the AX column should say basically the same thing as the other columns (see #314 (comment) below for reasoning):
|
|
Ah, yes - good point. valuenow would only be mapped for number and range. So we'd (eventually) need (at least) 3 rows for value attr for input:
|
Tested what user agents are actually doing with value on inputs. Chrome/Edge/Win:
FF/Win:
Chrome/Edge/FF/Mac: same as their Windows counterparts (above)Safari/Mac:
@joanmarie Are the ATK mappings basically the same as Chrome/Edge/Win? i.e. the mappings that HTML-AAM specifies? |
I am not sure if there is really a bug in Firefox for Date and Time. The input field itself is only the container for the spin buttons in the input field (e.g. for hours and minutes or day, month and year, which get the focus individually and where the value is transmitted correctly). The screen reader NVDA then also correctly determines the value of the container in the element overview (which does not work in Chrome) |
This PR closes #314 and clarifies the `value` attribute mappings for other input types. note: the `value` attribute only represents *the initial value* for the input elements that expose the attribute's value. If a user updates a form control the `value` attribute's value does not mutate to reflect the updated entry. The updates I provided for these inputs attempts to specifically call this out. if this is not clear, please suggest alternate wording. Note that the `input type=color` `value` is far more complex than the other inputs and I would appreciate specific feedback on what would need to be updated here, if anything. Additionally, the `input type=color` seems to make a strong case for allowing `aria-valuetext` on a `button` element – where the button should be named via a `label` or an `aria-label/labelledby`, but still needs to expose it's displayed value (subtree of the button element).
replacement for w3c/html-aam#396 closes w3c/html-aam#314
Currently value is stated as not mapped for an input element.
The text was updated successfully, but these errors were encountered: