Skip to content

[accessibility] Assign ids to summary row heads (<th>) and apply as headers to <td>s #926

Description

@batpigandme

Expansion of #678 as it applies to, e.g. summary lines (as in the examples in the creating-summary-lines vignette where you're creating groupwise summary lines).

These will constitute tables with multi-level headings, and need the <th>s with each scope (col, row, colgroup, rowgroup) to have ids that are applied to the individual <td> cells.

The examples in the W3C WAI Tables with Multi-Level Headers (particularly Example 2) match nicely with the structure you have for the groupwise summary lines (see full code for Complete “Table with three headers related to each data cell” Example).

Wanted to file this now, since it might be useful for the <th> elements to get ids by default, so that they can be applied to individual cells for multi-level-header tables, and tables with irregular headers.

Edit Sorry about filing as bug rather than enhancement! 😳 I can't change it after the fact.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions