-
Notifications
You must be signed in to change notification settings - Fork 358
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
ARIA practices spec and examples are not aligned on ARIA 1.1 combobox labelling #886
Comments
Attaching example using aria-labelledby on the role="combobox" object: |
Support should always follow the spec, because that is the only normative document. |
@aleventhal -- Something related; in Example 1: List Autocomplete with Manual Selection, the acc name of combobox is derived from for / id on label and input elements respectively. This requirement is helpful as it ensures larger click area. Examples 2 and 3 implement it differently via aria-labelledby on input.
|
@accdc said:
Agree completely, but the ARIA 1.1 spec for combobox doesn't really say where to put the label, although Example 5 does show it on the combobox element and not on the textbox. Are examples normative? @aleventhal I think you meant "practices guide" and not "spec" in your opening sentence. :) |
Related ARIA issue: w3c/aria#893 |
Related ARIA issue: 1776 |
This has been resolved with the APG 1.2 pattern and combobox examples. The combobox wrapper is now gone so the label belongs on the input, which is now also the combobox element. |
The ARIA 1.1 spec says, "If the combobox has a visible label, the element with role combobox has aria-labelledby set to a value that refers to the labeling element. Otherwise, the combobox element has a label provided by aria-label."
https://www.w3.org/TR/wai-aria-practices-1.1/#combobox
However, the ARIA practices combobox (https://www.w3.org/TR/wai-aria-practices-1.1/examples/combobox/aria1.1pattern/listbox-combo.html#ex1) with listbox example does not do this:
<label for>
even though the spec says to use aria-labelledby to label the combobox with visible text.If the ARIA spec were followed by the example, then NVDA would get it right, but not JAWS or ChromeVox. I'm not near my Mac, so I'm not sure about VoiceOver.
We need to know what's correct, the example or the ARIA practices spec?
The text was updated successfully, but these errors were encountered: