Skip to content

grid vs. treegrid allowed row attributes #2794

@smhigley

Description

@smhigley

Expectation: aria-posinset, aria-setsize, aria-expanded, and aria-level should all be allowed on role="row", but only when descending from a treegrid.

Actual: aria-posinset and aria-setsize always cause an allowed attribute error on row, while aria-expanded and aria-level never do.

You can see the false positives on the aria-practices example on this page: https://w3c.github.io/aria-practices/examples/treegrid/treegrid-1.html. If you change the parent role to grid then run the test again, you can see that aria-expanded and aria-level are not flagged.

Motivation:
Valid treegrid attributes are getting errors flagged, resulting in a stream of bad bugs, and some easily-caught errors like aria-expanded or aria-level on grids and tables are not flagged.


axe-core version: 4.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or enhancementprA pr has been created for the issuerulesIssue or false result from an axe-core rule

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions