You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _rules/table-headers-attribute-refer-to-data-cells-a25f45.md
+21-1Lines changed: 21 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,6 +239,26 @@ The `td` elements have a `headers` attribute referring to an ID that does not ex
239
239
240
240
#### Failed Example 2
241
241
242
+
The `td` elements have a `headers` attribute referring to an ID that exist in a separate `table`.
243
+
244
+
```html
245
+
<table>
246
+
<tr>
247
+
<thid="headOfColumn1">Projects</th>
248
+
<thid="headOfColumn2">Objective</th>
249
+
</tr>
250
+
</table>
251
+
252
+
<table>
253
+
<tr>
254
+
<tdheaders="headOfColumn1">15%</td>
255
+
<tdheaders="headOfColumn2">10%</td>
256
+
</tr>
257
+
</table>
258
+
```
259
+
260
+
#### Failed Example 3
261
+
242
262
The `td` element has a `headers` attribute referring to its own ID.
243
263
244
264
```html
@@ -254,7 +274,7 @@ The `td` element has a `headers` attribute referring to its own ID.
254
274
</table>
255
275
```
256
276
257
-
#### Failed Example 3
277
+
#### Failed Example 4
258
278
259
279
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`.
0 commit comments