Skip to content

Commit 8d21520

Browse files
Resolution for Passed Example 3 in "Headers attribute specified on a cell refers to cells in the same table element" [a25f45] (#2353)
* Resolution for passed Example 3 in Headers attribute specified on a cell refers to cells in the same table element [a25f45] - Added accessibility supported note - Added clarification that passed example 3 is not meeting ARIA in HTML and HTML specs * Update table-headers-attribute-refer-to-data-cells-a25f45.md * Update _rules/table-headers-attribute-refer-to-data-cells-a25f45.md Co-authored-by: Dan Tripp <113939352+dan-tripp-siteimprove@users.noreply.github.com> --------- Co-authored-by: Dan Tripp <113939352+dan-tripp-siteimprove@users.noreply.github.com>
1 parent 1179d7f commit 8d21520

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

_rules/table-headers-attribute-refer-to-data-cells-a25f45.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ Each target's [attribute value][] is a [set of space separated tokens][], and no
5353

5454
### Accessibility Support
5555

56-
There are no accessibility support issues known.
56+
Different screen reader and browser combinations may fail to correctly associate table headers and cells when using the headers and id attributes.
57+
While these constructs are technically valid, relying solely on them can still lead to accessibility issues depending on the user’s setup.
5758

5859
### Other Resources
5960

@@ -112,6 +113,7 @@ The `headers` attribute on the cell refers to a `th` element within the same `ta
112113
#### Passed Example 3
113114

114115
The `headers` attribute on the data cells in the second row refers to a `td` element with a role of `columnheader` within the same `table`.
116+
Although this construct does not conform to the [ARIA in HTML](https://www.w3.org/TR/html-aria/#el-td) or [HTML specifications](https://html.spec.whatwg.org/#attributes-common-to-td-and-th-elements), it behaves the same as using a `th` element instead of a `td` element with a role of `columnheader`, on all popular browser / screen reader combinations, at the time of writing.
115117

116118
```html
117119
<table>

0 commit comments

Comments
 (0)