From 09c53f432293c977bbba0253036fba855fd81643 Mon Sep 17 00:00:00 2001 From: Tom Brunet Date: Thu, 31 Aug 2023 15:39:33 -0500 Subject: [PATCH 1/5] Updates based on issue 1910 --- ...le-headers-attribute-refer-to-data-cells-a25f45.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md b/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md index d8a076085db..58b79797f67 100755 --- a/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md +++ b/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md @@ -22,6 +22,7 @@ acknowledgments: authors: - Audrey Maniez - Jey Nandakumar + - Tom Brunet funding: - WAI-Tools --- @@ -36,7 +37,7 @@ This rule applies to any `headers` attribute specified on a [`cell`][] within a ## Expectation 1 -Each target's [attribute value][] is a [set of space separated tokens][]. Each token is the value of the `id` attribute of an element, that is a [`cell`][] of the same [`table`][]. +Each target's [attribute value][] is a [set of space separated tokens][]. Each token is the value of the `id` attribute of an element, which is a [`cell`][] of the same [`table`][] and is a `th` element. ## Expectation 2 @@ -110,14 +111,14 @@ The `headers` attribute on the cell refers to a `th` element within the same `ta #### Passed Example 3 -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`. +The `headers` attribute on the data cells in the second row refers to a `th` element with a role of `columnheader` within the same `table`. ```html - - + + @@ -280,7 +281,7 @@ The `td` element has a `headers` attribute referring to its own ID. #### 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`. +The `headers` attribute on the data cells in the second row refers to an element inside the same `table` which is not a [`cell`][] nor a `th` element. ```html
ProjectsObjectiveProjectsObjective
From 06d58c365f6f3e1f03471632effd37eae93ae578 Mon Sep 17 00:00:00 2001 From: Tom Brunet Date: Fri, 20 Oct 2023 09:59:14 -0500 Subject: [PATCH 2/5] Update _rules/table-headers-attribute-refer-to-data-cells-a25f45.md Co-authored-by: Wilco Fiers --- _rules/table-headers-attribute-refer-to-data-cells-a25f45.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md b/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md index 58b79797f67..68cf60fbf39 100755 --- a/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md +++ b/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md @@ -37,7 +37,7 @@ This rule applies to any `headers` attribute specified on a [`cell`][] within a ## Expectation 1 -Each target's [attribute value][] is a [set of space separated tokens][]. Each token is the value of the `id` attribute of an element, which is a [`cell`][] of the same [`table`][] and is a `th` element. +Each target's [attribute value][] is a [set of space separated tokens][]. Each token is the value of the `id` attribute of an element, which is a `th` element of the same [`table`][]. ## Expectation 2 From 9b997ca1713ce2109d8fa8de2282be470c575d38 Mon Sep 17 00:00:00 2001 From: Tom Brunet Date: Thu, 21 Nov 2024 08:12:41 -0600 Subject: [PATCH 3/5] Update table-headers-attribute-refer-to-data-cells-a25f45.md --- ...rs-attribute-refer-to-data-cells-a25f45.md | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md b/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md index 9ef2160be5f..0fe61868951 100755 --- a/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md +++ b/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md @@ -51,7 +51,7 @@ Each target's [attribute value][] is a [set of space separated tokens][], and no ## Accessibility Support -There are no accessibility support issues known. +Screen reader support for the `headers` attribute does not follow the HTML specification at this time. Some screen readers will allow `td` elements to be referenced by the `headers` attribute. Other screen readers will ignore the `headers` attribute completely and look for `th` elements within the column. ## Background @@ -117,8 +117,8 @@ The `headers` attribute on the data cells in the second row refers to a `th` ele
- - + + @@ -304,6 +304,27 @@ The `headers` attribute on the data cells in the second row refers to an element
ProjectsObjectiveProjectsObjective
``` +#### Failed Example 5 + +The `headers` attribute on the data cells refers to a `td` element within the same `table` and not a `th` element. + +```html + + + + + + + + + + + +
Projects + Objective +
15%10%
+``` + ### Inapplicable #### Inapplicable Example 1 From 3ccf04bcd4b426ac1e1b75e056b2a4fc53f98943 Mon Sep 17 00:00:00 2001 From: Tom Brunet Date: Thu, 21 Nov 2024 08:20:29 -0600 Subject: [PATCH 4/5] Update table-headers-attribute-refer-to-data-cells-a25f45.md --- _rules/table-headers-attribute-refer-to-data-cells-a25f45.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md b/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md index 0fe61868951..a075f8d7837 100755 --- a/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md +++ b/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md @@ -51,7 +51,7 @@ Each target's [attribute value][] is a [set of space separated tokens][], and no ## Accessibility Support -Screen reader support for the `headers` attribute does not follow the HTML specification at this time. Some screen readers will allow `td` elements to be referenced by the `headers` attribute. Other screen readers will ignore the `headers` attribute completely and look for `th` elements within the column. +Screen reader support for the `headers` attribute does not follow the HTML specification at this time. Some screen readers will allow `td` elements to be referenced by the `headers` attribute. Other screen readers will ignore the `headers` attribute completely and look for `th` elements within the column. Note also that HTML specification says that the `headers` element must reference a `th` element, but some screen readers allow `headers` to reference semantic headers (i.e., ARIA role defined) also. ## Background From 139863f7c2929814d7f8c7bb66e0167dfc75bb34 Mon Sep 17 00:00:00 2001 From: Tom Brunet Date: Thu, 21 Nov 2024 08:24:38 -0600 Subject: [PATCH 5/5] Update table-headers-attribute-refer-to-data-cells-a25f45.md --- _rules/table-headers-attribute-refer-to-data-cells-a25f45.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md b/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md index a075f8d7837..db6ae956115 100755 --- a/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md +++ b/_rules/table-headers-attribute-refer-to-data-cells-a25f45.md @@ -312,8 +312,8 @@ The `headers` attribute on the data cells refers to a `td` element within the sa - +
Projects - Objective + ProjectsObjective