-
Notifications
You must be signed in to change notification settings - Fork 868
Description
Product
axe-core
Product Version
latest
Latest Version
- I have tested the issue with the latest version of the product
Issue Description
Description
aria-sort should only be allowed on elements with role columnheader or rowheader (including native th with implicit header role).
However, axe-core does not flag cases where aria-sort is applied to non-th elements that do not have an explicit rowheader or columnheader role (e.g., div, span, td without appropriate role).
Reproduction
<div aria-sort="ascending">Name</div>Expected: Violation reported (invalid use of aria-sort)
Actual: No violation reported.
Reference
For comparison, see this related unit test asserting correct aria-sort usage:
https://github.com/evan90levesque-cmyk/Level_Access_Engine/blob/a37445427c317244d2145c67eae8618fb05115e5/src/Tests/Automatic/Test_14.js#L19
It explicitly validates that aria-sort is only used on elements with appropriate header roles.