From 15ca899b61e6de31e6187bce9e4914c1808356ed Mon Sep 17 00:00:00 2001 From: scottaohara Date: Wed, 18 Aug 2021 18:54:49 -0400 Subject: [PATCH] cut down rowspan/colspan rules for now closes #338 further updates for these attributes and other table related rules need to be tracked in #258 --- index.html | 20 ++++++++++++++------ results/implementation-results.html | 8 ++++---- tests/colspan-test.html | 26 ++++++-------------------- tests/rowspan-test.html | 21 ++------------------- 4 files changed, 26 insertions(+), 49 deletions(-) diff --git a/index.html b/index.html index 4aa8f1b5..ba9bcecc 100644 --- a/index.html +++ b/index.html @@ -3107,14 +3107,18 @@

Use the `colspan` attribute on any element that is allowed the `colspan` attribute in HTML.

+

- Authors SHOULD NOT use the `aria-colspan` attribute on any element which also has a `colspan` attribute. + Authors SHOULD NOT use the `aria-colspan` attribute on any element which allows the `colspan` attribute. Use the `colspan` attribute instead.

- Authors MUST NOT use `aria-colspan` on any element which also has a `colspan` attribute, and the values of each attribute do not match. + Authors MUST NOT use `aria-colspan` on any element which also has a `colspan` attribute and the values of each attribute do not match.

@@ -3131,14 +3135,18 @@

Use the `rowspan` attribute on any element that is allowed the `rowspan` attribute in HTML.

+

- Authors SHOULD NOT use the `aria-rowspan` attribute on any element which also has a `rowspan` attribute. + Authors SHOULD NOT use the `aria-rowspan` attribute on any element which allows the `rowspan` attribute. Use the `rowspan` attribute instead.

- Authors MUST NOT use `aria-rowspan` on any element which also has a `rowspan` attribute, and the values of each attribute do not match. + Authors MUST NOT use `aria-rowspan` on any element which also has a `rowspan` attribute and the values of each attribute do not match.

diff --git a/results/implementation-results.html b/results/implementation-results.html index b3e519b7..e7cdff17 100644 --- a/results/implementation-results.html +++ b/results/implementation-results.html @@ -3696,12 +3696,12 @@

Conformance Checker Rule Implementations

Use the colspan attribute on any element that is allowed the colspan attribute in HTML.

-

+

Authors MUST NOT use aria-colspan on any element which also has a colspan attribute, and the values of each attribute do not match.

@@ -3724,12 +3724,12 @@

Conformance Checker Rule Implementations

Use the rowspan attribute on any element that is allowed the rowspan attribute in HTML.

-

+

Authors MUST NOT use aria-rowspan on any element which also has a rowspan attribute, and the values of each attribute do not match.

diff --git a/tests/colspan-test.html b/tests/colspan-test.html index 9d0d234c..a0428e81 100644 --- a/tests/colspan-test.html +++ b/tests/colspan-test.html @@ -46,7 +46,7 @@

ARIA in HTML - test cases for aria-colspan

-

last updated 27 February 2021

+

last updated 18 August 2021

colspan is allowed on td and th elements

@@ -57,24 +57,7 @@

Tests:

Test 1

-

Authors MAY use the aria-colspan attribute on any element that is allowed the colspan attribute in HTML, or any element with a WAI-ARIA role which allows the aria-colspan attribute.

- -

The first th and td each have an aria-colspan="1"

- -
- - - - - - - - -
header 1header 2
Cell 1Cell 2
-
- -

Expected result: -
no warning/error

+ Edit: removed test.
@@ -86,7 +69,10 @@

Test 2

- + + + + diff --git a/tests/rowspan-test.html b/tests/rowspan-test.html index be111e5c..5a5d883f 100644 --- a/tests/rowspan-test.html +++ b/tests/rowspan-test.html @@ -46,7 +46,7 @@

ARIA in HTML - test cases for aria-rowspan

-

last updated 27 February 2021

+

last updated 18 August 2021

rowspan is allowed on td and th elements

@@ -57,24 +57,7 @@

Tests:

Test 1

-

Authors MAY use the aria-rowspan attribute on any element that is allowed the rowspan attribute in HTML, or any element with a WAI-ARIA role which allows the aria-rowspan attribute.

- -

The first th and td each have an aria-rowspan="1"

- -
-
header 1header 2
header 1header 2
Cell 1
- - - - - - - -
header 1header 2
Cell 1Cell 2
-
- -

Expected result: -
no warning/error

+ Edit: removed test.