Skip to content

Imprrove table-has-headers check to handle more complex table markups #1153

@pattonwebz

Description

@pattonwebz

Update the table-has-header check to deal with the TODO comment. The TODO should be fully tackled and removed with the changes.

// TODO: Improve logic to account for colspan, rowspan, and complex ARIA header relationships

A previous attempt was made in a different PR but reverted so it could be tackled in a dedicated PR so it can be better tested and decided on. You may want to take the same approach or a different one.

Commits to reference:
9c49dfa - Enhanced table-has-headers.js logic with ARIA support, colspan/rowspan handling
c4ab723 - Comprehensive test cases (16 additional tests)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions