Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aria-setsize and aria-posinset are allowed on tr in treegrid #190

Closed
carmacleod opened this issue Nov 18, 2019 · 0 comments · Fixed by #191
Closed

aria-setsize and aria-posinset are allowed on tr in treegrid #190

carmacleod opened this issue Nov 18, 2019 · 0 comments · Fixed by #191

Comments

@carmacleod
Copy link
Contributor

Please see w3c/aria#558

aria-setsize and aria-posinset were allowed on tr (when descendant of treegrid) in the ARIA spec in August 2018, but it seems that propagating that change to ARIA in HTML must have slipped through the cracks.

ARIA for role="row" currently says:

While the row role can be used in a table, grid, or treegrid, the semantics of aria-expanded, aria-posinset, aria-setsize, and aria-level are only applicable to the hierarchical structure of an interactive tree grid. Therefore, authors MUST NOT apply aria-expanded, aria-posinset, aria-setsize, and aria-level to a row that descends from a table or grid, and user agents SHOULD NOT expose any of these four properties to assistive technologies unless the row descends from a treegrid.

So ARIA in HTML needs to be updated as follows:

  • tr element needs to allow explicit role="row" if in "treegrid" (as well as grid), i.e.:

    role=row, may be explicitly declared when child of a table element with role=grid ** or treegrid**

  • row role needs to add aria-setsize and aria-posinset to the list of supported properties, and (somehow) say that aria-expanded, aria-posinset, aria-setsize, and aria-level are only supported if in a treegrid

I will provide a PR shortly.

@scottaohara scottaohara transferred this issue from w3c/html-aam Nov 18, 2019
carmacleod added a commit to carmacleod/html-aria that referenced this issue Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant