Test 1439: One or more elements, not intentionally hidden in the DOM and available to assistive technologies, has a headers attribute that is set to a duplicate id.
Elements with headers attribute are outlined in purple. Duplicate IDs are highlighted in red, unique IDs in green.
headers attribute pointing to IDs that appear multiple times in the DOMheaders values are ignoredThe headers attribute explicitly associates table cells with their header cells, improving accessibility for screen reader users navigating complex tables. Each referenced header ID must be unique in the document.
| Name |
|---|
| John |
Elements without headers attribute are not tested
| Name |
|---|
| John |
Empty headers values are ignored
| Name | Age |
|---|---|
Hidden elements are excluded from testing
| Column 1 | Column 2 |
|---|---|
Visibility hidden elements are not tested
| Name | Age |
|---|---|
aria-hidden elements are not available to assistive technologies
| Name | Age |
|---|---|
| John | 25 |
Each cell references unique header IDs
| Column 1 | Column 2 |
|---|---|
| Data 1 | Data 2 |
| Data 3 | Data 4 |
Multiple cells can reference the same unique header ID
| Data |
Non-existent IDs are allowed as long as they're unique (not duplicated)
| Row 1 | Column A |
|---|---|
| Row 2 | Data |
Cell references both row and column headers with unique IDs
| Q1 | Q2 | |
|---|---|---|
| Sales | $100K | $150K |
| Costs | $80K | $90K |
Complex table with all unique header references
| Region |
|---|
| North |
| Data |
Header cell references another header with unique ID
| Name | Age | City |
|---|---|---|
| John |
Cell references unique ID, even though other duplicates exist in the table
| Name | Age |
|---|---|
| John |
Header ID appears twice - cell FAILS
| Column | Column 2 |
|---|---|
| Data 1 | Data 2 |
Both cells reference duplicate ID - both FAIL (2 failures)
| Row 1 | Column 1 | Column 2 |
|---|---|---|
| Data |
One of the referenced IDs is duplicated - cell FAILS
| Region | Area |
|---|---|
| North |
Header cell references duplicate ID - FAILS
| Q1 | Q2 | |
|---|---|---|
| Sales | $100K | $150K |
| Costs | $80K | $90K |
Row header ID is duplicated - all 4 cells FAIL (4 failures)
Non-table element with headers pointing to duplicate ID - FAILS
| Name | Age |
|---|---|
| John |
Whitespace is trimmed - still detects duplicate ID
| Row | Row 2 | Col | Col 2 |
|---|---|---|---|
| Data |
Both referenced IDs are duplicated - cell FAILS
| Visible Header |
|---|
| Data |
ID appears in both visible and hidden elements - still duplicated, FAILS
| Name | Age | City |
|---|---|---|
| John | NYC |
First cell FAILS (duplicate), second PASSES (unique)
| Header A | Header B |
|---|---|
| Data 1 |
| Header C | Header D |
|---|---|
| Data 2 |
Each table has cells referencing different duplicate IDs - both FAIL (2 failures)
| Month | Revenue | Profit |
|---|---|---|
| January | $10,000 | $2,000 |
| February | $12,000 | $2,500 |
Well-formed data table with unique headers - PASSES
| Period | Revenue |
|---|---|
| January | $10,000 |
| February | $12,000 |
Row header IDs are duplicated - both cells FAIL (2 failures)
| Category | Sales | |
|---|---|---|
| Q1 | Q2 | |
| Electronics | $50K | $60K |
Complex table with multi-level unique headers - PASSES
| Product | Price | Stock |
|---|---|---|
| Widget | $10 | 100 |
All column headers have duplicate IDs - all 3 cells FAIL (3 failures)
ARIA grid with unique header IDs - PASSES
Column headers have duplicate IDs - both gridcells FAIL (2 failures)
| Student | Math | Science |
|---|---|---|
| Alice | 95 | 92 |
| Bob | 88 | 90 |
Table combines scope and headers attributes with unique IDs - PASSES
| Electronics |
|---|
| Laptop |
| Furniture |
| Desk |
Section headers reuse same ID - both cells FAIL (2 failures)