ARIA in HTML - test case for aria-placeholder

last updated 28 February 2021

The placeholder attribute is allowed on input type=email, number, password, search, tel, text, url.

Tests:

Test 1

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

The following inputs have aria-placeholder="test" set.

Expected result:
No warning or error.

Test 2

Authors MUST NOT use the aria-placeholder attribute on any element which also has a placeholder attribute.

The following inputs have placeholder="test" and aria-placeholder="invalid" set.

Expected result:
Error for use of aria-placeholder when element has a placeholder attribute set.