Skip to content

aria-sort not flagged on non-th elements without header role #5019

@evan90levesque-cmyk

Description

@evan90levesque-cmyk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ungroomedTicket needs a maintainer to prioritize and label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions