Aria-errormessage link for input fields (4.1.2.aria-errormessage)
Input fields with invalid inputs and corresponding
aria-invalid attributes are linked to
their corresponding error messages using
aria-errormessage, or a combination of
aria-invalid and
aria-describeby is used.
(This violation is using aria-errormessage without aria-invalid.
Please note that an aria-invalid + aria-errormessage or an
aria-invalid + aria-describeby should be used.)
Wrongly used aria-errormessage:
This input field is using
aria-errormessage without
aria-invalid:
Note: Auto-testing is possible. An auto-test can be performed by checking
if aria-errormessage is used with aria-invalid. If both are missing, the
test fails.