From 78aed1322cfcf0c7b223756fab918a78dec0949b Mon Sep 17 00:00:00 2001 From: Jey Nandakumar Date: Fri, 18 Oct 2019 11:16:12 +0100 Subject: [PATCH] Revert "Rule: Table header cells have corresponding data cells (d0f69e) (#417)" This reverts commit 078d2d57196ff97e771b4ab71115c703e8d7289c. --- __tests__/spelling-ignore.yml | 3 - ...header-cells-refer-to-data-cells-d0f69e.md | 202 ------------------ 2 files changed, 205 deletions(-) delete mode 100644 _rules/table-header-cells-refer-to-data-cells-d0f69e.md diff --git a/__tests__/spelling-ignore.yml b/__tests__/spelling-ignore.yml index 6e73fbb7bf..2bbf83ed3e 100644 --- a/__tests__/spelling-ignore.yml +++ b/__tests__/spelling-ignore.yml @@ -113,8 +113,6 @@ - rotate3d - rotateZ - matrix3d -- rowheader -- columnheader # ARIA Techniques (https://www.w3.org/WAI/WCAG21/Techniques/#aria) - ARIA1 @@ -162,7 +160,6 @@ - H36 - H37 - H42 -- H43 - H44 - H58 - H67 diff --git a/_rules/table-header-cells-refer-to-data-cells-d0f69e.md b/_rules/table-header-cells-refer-to-data-cells-d0f69e.md deleted file mode 100644 index e0ed42dc88..0000000000 --- a/_rules/table-header-cells-refer-to-data-cells-d0f69e.md +++ /dev/null @@ -1,202 +0,0 @@ ---- -id: d0f69e -name: All table header cells have corresponding data cells -rule_type: atomic -description: | - This rule checks that each table header has corresponding data cells in a table element. -accessibility_requirements: - wcag20:1.3.1: # Info and Relationships (A) - forConformance: true - failed: not satisfied - passed: further testing needed - inapplicable: further testing needed -input_aspects: - - DOM Tree -authors: - - Jey Nandakumar - - Audrey Maniez ---- - -## Applicability - -The rule applies to any HTML element that is a [descendant](https://dom.spec.whatwg.org/#concept-tree-descendant) in the [flat tree](https://drafts.csswg.org/css-scoping/#flat-tree) of an element having a [semantic role](#semantic-role) of either [table](https://www.w3.org/TR/wai-aria-1.1/#table) or [grid](https://www.w3.org/TR/wai-aria-1.1/#grid), and is [visible](#visible) as well as [included in the accessibility tree](#included-in-the-accessibility-tree), where the element has any of the following [semantic roles](#semantic-role): - -- [cell](https://www.w3.org/TR/wai-aria-1.1/#cell) -- [gridcell](https://www.w3.org/TR/wai-aria-1.1/#gridcell) -- [rowheader](https://www.w3.org/TR/html-aria/#index-aria-rowheader) -- [columnheader](https://www.w3.org/TR/html-aria/#index-aria-columnheader) - -## Expectation - -The target element is either the row or column header for cells that is a [descendant](https://dom.spec.whatwg.org/#concept-tree-descendant) in the [flat tree](https://drafts.csswg.org/css-scoping/#flat-tree) of the same [table](https://www.w3.org/TR/wai-aria-1.1/#table) or [grid](https://www.w3.org/TR/wai-aria-1.1/#grid) element, as that of the target element. - -**Note:** Assigning headers cells to data cell is performed as per algorithm - [Forming relationships between data cells and header cells](https://html.spec.whatwg.org/multipage/tables.html#header-and-data-cell-semantics). - -## Assumptions - -_There are currently no assumptions._ - -## Accessibility Support - -_There are no major accessibility support issues known for this rule._ - -## Background - -- [Understanding Success Criterion 1.3.1: Information and relationships](https://www.w3.org/WAI/WCAG21/Understanding/info-and-relationships.html) -- [H43: Using id and headers attributes to associate data cells with header cells in data tables](https://www.w3.org/WAI/WCAG21/Techniques/html/H43) -- [Forming relationships between data cells and header cells](https://html.spec.whatwg.org/multipage/tables.html#header-and-data-cell-semantics) - -## Test Cases - -### Passed - -#### Passed Example 1 - -The column header element has corresponding cell, within the same `table` element. - -```html - - - - - - - -
Time
05:41
-``` - -#### Passed Example 2 - -Each column header element has corresponding cells, within the same `table` element. - -```html -
-
-
- Month - Top Temperature -
-
-
-
- July - 40 C -
-
- August - 45 C -
-
-
-``` - -#### Passed Example 3 - -Each column header element has corresponding cells within the same table element. In this example the column headers have cells that span multiple columns. - -```html - - - - - - - - - - - - -
ProjectsExams
15%
-``` - -#### Passed Example 4 - -Each row and column header element has corresponding cells, within the same element having a [semantic role](#semantic-role) of `grid`. - -```html - - - - - - - - - - - - - - - - - -
BreakfastLunchDinner
Day 18:0013:0018:00
-``` - -### Failed - -#### Failed Example 1 - -One of the column headers ("Column 2"), does not have corresponding cell within the same `table` element. - -```html - - - - - - - - - - - - -
Column 1Column 2
15%
-``` - -### Inapplicable - -#### Inapplicable Example 1 - -The rule does not apply to table element that is not [included in the accessibility tree](#included-in-the-accessibility-tree). - -```html - - - - - - - -
Time
12:00
-``` - -#### Inapplicable Example 2 - -The rule does not apply to table element that is not [visible](#visible) in page. - -```html - - - - - - - - - - - -
Time
24:00
- - -```