Skip to content

td-has-header should not always fail <td headers=""> #2039

Closed
@WilcoFiers

Description

The td-has-header rule seems to consistently fail <td headers=""> elements. We have some test data that shows that AT will fall back to column / rowheaders in this situation.

<table>
  <tr>
    <th scope="col">Projects</th>
    <th scope="col">Progress</th>
  </tr>
  <tr>
    <td headers="">My Project</td>
    <td>15%</td>
  </tr>
</table>

IE + JAWS: Works
Chrome + JAWS: Works
Firefox + NVDA: Works
Safari + VO: Works

I think we should report this for review. Axe-core should probably still fail if the headers attribute references something that doesn't exist, or something outside the table.

Metadata

Assignees

Labels

fixBug fixesrulesIssue or false result from an axe-core rule

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions