Skip to content

Conversation

@scottaohara
Copy link
Member

@scottaohara scottaohara commented Jan 8, 2026

This PR covers a few things:

  1. clarifies that the mention of "ancestor table" was meant to mean "nearest ancestor table" - re: Cells with role="presentation" of a nested table with role="presentation" are stated as invalid validator/validator#1304
  2. Per feedback / use cases for correcting errant tables, the allowances for td and th elements have been expanded to allow other reasonable roles that developers may need to use.
  3. It is meant to supersede parts of the dormant PR updates table element allowances #265
  4. this will close <td> and role="columnheader/rowheader" #562

TODO: need test cases / updated test cases for the updated role allowances.


Preview | Diff

This PR covers a few things:

1. clarifies that the mention of "ancestor table" was meant to mean "nearest ancestor table" - re: validator/validator#1304
2. Per feedback / use cases for correcting errant tables, the allowances for td and th elements have been expanded to allow other reasonable roles that developers may need to use.
</p>
<div class="note">
<p>
If a `td` element's nearest descendant `table` element is exposed with a role of `table`, `grid` or `treegrid`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would this (and the matching one below) benefit from a tiny preamble, like "If a td element has a nested table, and the descendant table element..."

</p>
<div class="note">
<p>
If a `tr` element's nearest descendant `table` element is exposed with a role of `table`, `grid` or `treegrid`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see above

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 this pull request may close these issues.

<td> and role="columnheader/rowheader"

3 participants