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
squirrel.toml
toml[rules]
disable = ["a11y/td-headers-attr"]Disable all Accessibility rules
squirrel.toml
toml[rules]
disable = ["a11y/*"]Enable only this rule
squirrel.toml
toml[rules]
enable = ["a11y/td-headers-attr"]
disable = ["*"]