Form-field has an unrecognized autocomplete value
| Field | Value |
|---|---|
| Rule code | FormField_Autocomplete_Invalid |
| WCAG conformance level | AA |
| WCAG success criterion | 1.3.5 Identify Common Purpose |
| Must be fixed at source | No |
Description
An unrecognized autocomplete value was detected on a form-field. Form-fields may have an autocomplete attribute added to them indicating what type of data is expected and providing a browser auto-fill capability for the user. If the autocomplete value is incorrect, the browser auto-fill capability provided to the user is likely to be wrong. For a full list of autocomplete types and values, refer to the W3C definition of input types: https://www.w3.org/TR/WCAG21/#input-purposes
How to fix
The autocomplete attribute defines how autocomplete will work on each input. Use only autocomplete types and values as specified by the HTML standards. For a list of autocomplete types, refer to the W3C's definitions of input types. Check that all attributes and values are spelled correctly and match a known, official attribute.