ARIA in HTML - test cases for aria-disabled

last updated 27 February 2021

disabled is allowed on input, button, select, textarea, fieldset, option, optgroup and form associated custom elements

note: a form associated custom element is not part of this test case

Tests:

Test 1

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

The following elements have aria-disabled=true attributes.

fieldset

Expected result:
for all but input type=hidden no warning/error

for input type=hidden error that no aria-* attributes are allowed.

Test 2

Authors SHOULD NOT use aria-disabled="true" on any element which also has a disabled attribute.

The following elements have aria-disabled=true and disabled attributes.

fieldset

Expected result:
for all but input type=hidden unnecessary use of aria-disabled when element has disabled.

for input type=hidden error that no aria-* attributes are allowed.

Test 3

Authors MUST NOT use aria-disabled="false" on any element which also has a disabled attribute.

The following elements have aria-disabled=false and disabled attributes.

fieldset

Expected result:
for all but input type=hidden error for use of aria-disabled="false" with disabled attribute.

for input type=hidden error that no aria-* attributes are allowed.