Aria-errormessage link for input fields (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 uses the aria-errormessage attribute without a corresponding aria-invalid attribute. Please note that a combination of aria-invalid + aria-errormessage or aria-invalid + aria-describeby should be used to programmatically associate error messages with input fields.

Wrongly used aria-errormessage:

This input field is using aria-errormessage without aria-invalid:




Note: Possible to automatically test. An auto-test can be performed by checking if aria-errormessage is used with aria-invalid. If both are missing, the test fails.

axe detected: none  |  QualWeb detected: none