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

Is the documentation regarding the computation of name and description of tabular elements correct? #179

Open
matt-curtis opened this issue Apr 14, 2019 · 3 comments
Labels
accName & Desc Related to accessible name or description

Comments

@matt-curtis
Copy link

matt-curtis commented Apr 14, 2019

According to the documentation for the tr, td, and th elements, the current computation rules only consider the aria-label, aria-labelledby, or title attributes, otherwise these elements have no name or description.

Should not the subtree of these elements be considered, at least as far as the accessible name goes?

@mmeller75
Copy link

Curious why this was closed. I was going to ask the same question. My understanding of the accessible name computation, which corresponds to how I've seen accessible names calculated by browsers, is that content should fall between ARIA labels and title. Looking at equivalent ARIA roles, they all accept name from content.

@matt-curtis matt-curtis reopened this Jun 24, 2019
@scottaohara
Copy link
Member

scottaohara commented Jul 22, 2019

These elements should probably be broken apart and their naming re-reviewed.

for example:

  • th should better communicate how abbr is used for naming
  • td and th should likely allow name from subtree
  • firefox issue about tr name - tr should not be named if a standard table (not grid)

@scottaohara
Copy link
Member

from @extra808

Currently the name computation for tr, td, and th elements are the same. I don't have an opinion about the others but for th elements with the columnheader or rowheader role, shouldn't "Otherwise use th element subtree." be included, before "Otherwise use title attribute."?

https://w3c.github.io/html-aam/#tr-td-th-elements-accessible-name-computation

In practice, when a th columnheader contains text and has a title attribute, Chrome (v112) and Firefox (v111) do use the subtree for the name, according to their DevTools. However Safari's (v16.4.1 for Mac) DevTools show the cell's name as being the title attribute's value. Safari's name seems wrong but it's conforming to these mappings as currently written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accName & Desc Related to accessible name or description
Projects
None yet
Development

No branches or pull requests

3 participants