-
Notifications
You must be signed in to change notification settings - Fork 783
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 this really a WCAG defect: All <th> elements and elements with role=columnheader/rowheader must have data cells they describe #741
Comments
Hey Melanie. Thanks for the report. I think you are entirely correct. I would suggest that we make the following changes:
What do you think? |
After looking into this, it looks like the code correctly marks the "Bad Example" as needs review. It seems like the example should be updated to show a missing column rather than an empty column. |
Immediate change doesn't require specific documentation. |
@straker Can you please specify the expected behaviour. |
@chandana7393 The rule should return needs review only if a table heading row or table heading column has 0 cells (so is missing the entire row/column after the header). Otherwise it should always pass. <table>
<tr><th>Header</th></tr>
<tr></tr>
</table> |
…s#741) * docs: update docs to use named import and create example.js * remove * Update packages/playwright/example.js Co-authored-by: Gabe <41127686+Zidious@users.noreply.github.com> * Update packages/playwright/example.js Co-authored-by: Gabe <41127686+Zidious@users.noreply.github.com> * readme updates --------- Co-authored-by: Gabe <41127686+Zidious@users.noreply.github.com>
Could you please clarify how the table used in the example on this page: https://dequeuniversity.com/rules/axe/3.0/th-has-data-cells is in violation of WCAG? The table is constructed properly - every
<th>
has a column of corresponding<td>
s. How does having empty data cells in the last column make this table a failure of WCAG? And, at a Serious level as my testing indicates that the table is accessibility supported across many platforms. There are certainly many legitimate use cases for having a table that has a column of empty data cells.Thank you!
The text was updated successfully, but these errors were encountered: