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
Empty table headers are flagged as a failure of WCAG 1.3.1 #3404
Comments
Thanks for the issue. So the reason we flag empty table headers as a failure of WCAG 1.3.1 is because the ARIA spec requires |
In this particular case, to fix the issue you could replace the empty |
Thanks for that information—that's useful. A couple of follow-ups:
|
So when mapping HTML elements to ARIA roles, the ARIA in HTML spec is used to determine the implicit AIRA role of the element. As for the criterion, I think @WilcoFiers will have to answer that one. |
Thanks. Just to muddy the waters: Axe currently has empty headings ( |
Makes sense I suppose. Francis would you be up for opening a pull request? You can change the tags by editing this file, and then remove the The impact is already set to minor so that won't need to change. |
References dequelabs#3404
Product: axe Extension
Expectation:
I don't think an empty table header (e.g.
<th></th>
) is a failure of WCAG 1.3.1 Info And Relationships, which is what Axe flags and tags this code as. It's definitely best practice to have text in a table heading, but I don't think this is a WCAG failure. 1.3.1 says:If a header cell is marked up as a header cell, is in the same same row as all the other header cells, and styled differently from non-header cells, I'd argue that the presentational information, structure, and relationships are programmatically available. There's no text, so there's nothing to present visually or programmatically.
I'd expect to see this flagged as Best Practice rather than a WCAG conformance issue.
Actual:
This example is flagged in Axe with an issue tag of "wcag131":
Motivation:
I don't believe that this is a WCAG failure, so would like to see this moved to a best practice recommendation.
The text was updated successfully, but these errors were encountered: