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-invalid + aria-errormessage. Please note
that an aria-invalid + aria-describedby can also be used instead.)
Invalid aria-errormessage:
This input field has an invalid
aria-errormessage value:
Note: Auto-testing is possible. An auto-test can be performed by
programmatically checking if
aria-errormessage attributes have values that
reference actual elements.