w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
181 stars 49 forks source link

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

Closed carmacleod closed 4 years ago

carmacleod commented 4 years ago

Please see https://github.com/w3c/aria/issues/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:

I will provide a PR shortly.