You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the above html in Chrome and scan the page with the axe DevTools Extension. You'll see the top combobox has a "Required ARIA attributes must be provided" violation for a missing aria-controls attribute. The bottom combobox does not get flagged for this issue.
Thanks for the issue. With the change to the 1.2 combobox we dropped the requirements for owning elements, but added that aria-controls or aria-owns be present. Using the examples provided, both are missing the requirement that they own or control a listbox element.
When a combobox is expanded, authors MUST ensure it contains or owns an element that has a role of listbox, tree, grid, or dialog. This element is the combobox popup. When the combobox is expanded, authors MUST set aria-controls on the textbox element to a value that refers to the combobox popup element.
However, testing the combobox element on material-ui, I'm not seeing any violations using [email protected] when either the combobox is collapsed or expanded.
If [email protected] no longer reports an issue with the material-ui combobox then that should resolve this issue. Looks like the latest Chrome extension still uses [email protected] so I'll wait for a new release of the extension and try again.
Thanks!
Product: axe-core
Expectation: axe-core recognizes ARIA 1.1-compliant combobox as valid
Actual: axe-core flags ARIA 1.1-compliant combobox as missing a required attribute
Motivation: To remove what seems to be a false positive from the axe-core results
Here's a minimal example that will show the issue:
Open the above html in Chrome and scan the page with the axe DevTools Extension. You'll see the top combobox has a "Required ARIA attributes must be provided" violation for a missing
aria-controls
attribute. The bottom combobox does not get flagged for this issue.Based on my reading of the spec the
aria-owns
attribute should not be required to make the combobox compliant. From the spec: the combobox MUST "...contains or owns a text input element with role textbox..." and the definition of "owns" reads "An 'owned element' is any DOM descendant of the element, any element specified as a child via aria-owns, or any DOM descendant of the owned child." Since the first combobox in the example has atextbox
descendant, thearia-owns
attribute should not be required to show ownership of that element.I believe this change in behavior was introduced when ARIA 1.2 combobox support was added in #3033.
This will negatively impact any users of the material-ui autocomplete component as it is being flagged as being out of compliance by axe scans.
The text was updated successfully, but these errors were encountered: