squirrelscan
GitHub

Table Cell Headers

Checks that td headers attribute references valid th ids

Checks that td headers attribute references valid th ids

Rule ID a11y/td-headers-attr
Category Accessibility
Scope Per-page
Severity error
Weight 6/10

Solution

When using the headers attribute on <td> elements to associate cells with headers, ensure each id in the headers attribute matches an existing <th> element’s id in the same table.

Enable / Disable

Disable this rule

[rules]
disable = ["a11y/td-headers-attr"]

Disable all Accessibility rules

[rules]
disable = ["a11y/*"]

Enable only this rule

[rules]
enable = ["a11y/td-headers-attr"]
disable = ["*"]

Type to search…

↑↓ navigate↵ openesc close