-
Notifications
You must be signed in to change notification settings - Fork 849
Closed
Labels
ungroomedTicket needs a maintainer to prioritize and labelTicket needs a maintainer to prioritize and label
Description
Product
axe-core
Product Version
4.10.3
Latest Version
- I have tested the issue with the latest version of the product
Issue Description
Expectation
When axe-core checks for valid ARIA values, when it detects invalid values, I expect all of the invalid values to be displayed in the "How to fix" section.
Actual
It appears that under certain circumstances, when invalid values for aria-controls and aria-haspopup are detected simultaneously, the invalid value for aria-controls is not displayed in the "How to fix" section.
How to Reproduce
<button aria-controls="#" aria-haspopup="”false”">
button 1
</button>
<button aria-controls="#">
button 2
</button>
<button aria-controls="#" aria-expanded="maybe">
button 3
</button>
<button aria-controls="#" aria-expanded="maybe" aria-haspopup="”false”">
button 4
</button>- Copy and paste this code into your favorite online editor or a local HTML document.
- Run axe DevTools (for me v4.115.1)
- I selected partial page scan, picking an element that contains these buttons, but a full page scan would work
- Depending on the complexity of your test page you should notice four reported issues
These four reported issues are all aria-valid-attr-value rule violations, one for each of the elements listed above. In order here are the 'How to fix' section instructions:
- Invalid ARIA attribute value: aria-haspopup="”false”"
- Invalid ARIA attribute value: aria-controls="#"
- Invalid ARIA attribute values: aria-controls="#", aria-expanded="maybe"
- Invalid ARIA attribute values: aria-expanded="maybe", aria-haspopup="”false”"
Additional context
Could tangentially be related in someway to #4861? Either way it's curious that issue also involves some aria-controls and aria-haspopup curiosities.
Metadata
Metadata
Assignees
Labels
ungroomedTicket needs a maintainer to prioritize and labelTicket needs a maintainer to prioritize and label