ARIA in HTML - test cases for aria-rowspan

last updated 18 August 2021

rowspan is allowed on td and th elements

Tests:

Test 1

Edit: removed test.

Test 2

Authors SHOULD NOT use the aria-rowspan. attribute on any element which also has a rowspan attribute.

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

header 1header 2
Cell 1 Cell 2

Expected result:
warning for unnecessary use of aria-rowspan when element has rowspan.

Test 3

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

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

header 1header 2
Cell 1 Cell 2

Expected result:
error for use of aria-rowspan with value different than rowspan