WCAGA
How to test criterion 3.3.1 “Error Identification — If an input error is automatically detected, the item that is in error is identified and the error is described to the user in text.”
- WCAG references
- 3.3.1 Error Identification (A)
What this criterion says
If an input error is automatically detected, the item that is in error is identified and the error is described to the user in text.
Official methodology to test criterion 3.3.1
Official W3C techniques
The W3C does not publish a test procedure for this criterion. It publishes techniques instead: documented ways to meet it, and the failures that do not.
Sufficient techniques
Situation A: If a form contains fields for which information from the user is mandatory.
Situation B: If information provided by the user is required to be in a specific data format or of certain values.
- ARIA18 Using aria-alertdialog to Identify Errors
- ARIA19 Using ARIA role=alert or Live Regions to Identify Errors
- ARIA21 Using aria-invalid to Indicate An Error Field
- G84 Providing a text description when the user provides information that is not in the list of allowed values
- G85 Providing a text description when user input falls outside the required format or values
- SCR18 Providing client-side validation and alert
- SCR32 Providing client-side validation and adding error text via the DOM
- PDF22 Indicating when user input falls outside the required format or values in PDF forms