ARIA in HTML - test cases for aria-colspan

last updated 18 August 2021

colspan is allowed on td and th elements

Tests:

Test 1

Edit: removed test.

Test 2

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

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

header 1 header 2
Cell 1 Cell 2

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

Test 3

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

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

header 1header 2
Cell 1 Cell 2

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