Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion _rules/table-headers-attribute-refer-to-data-cells-a25f45.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,26 @@ The `td` elements have a `headers` attribute referring to an ID that does not ex

#### Failed Example 2

The `td` elements have a `headers` attribute referring to an ID that exist in a separate `table`.

```html
<table>
<tr>
<th id="headOfColumn1">Projects</th>
<th id="headOfColumn2">Objective</th>
</tr>
</table>

<table>
<tr>
<td headers="headOfColumn1">15%</td>
<td headers="headOfColumn2">10%</td>
</tr>
</table>
```

#### Failed Example 3

The `td` element has a `headers` attribute referring to its own ID.

```html
Expand All @@ -254,7 +274,7 @@ The `td` element has a `headers` attribute referring to its own ID.
</table>
```

#### Failed Example 3
#### Failed Example 4

The `headers` attribute on the data cells in the second row refers to an element inside the same `table` which does not have a role of `rowheader` or `columnheader`.

Expand Down