No autocomplete on password field Accessibility Checkpoint
Description
For input type=password elements, set the autocomplete attribute to new-password or current-password in order to identify input purpose.
Help
Specifying what kind of data is expected in a particular input field makes filling out forms easier, especially for people with cognitive disabilities. While type=password specifies the type of input, it doesn’t specify its purpose. Autocomplete values such as new-password and current-password are a well-supported way of identifying input purpose.
Applicable standards
- WCAG 2.1 (Success Criteria: 1.3.5 level AA)
- WCAG 2.2 (Success Criteria: 1.3.5 level AA)
- EN 301 549 (Success Criteria: 1.3.5 level AA)
Note: EN 301 549 checkpoints are equivalent to WCAG 2.1 level A and level AA checkpoints.
Change history
- 6.49 May 2023 Allow
webauthnautocomplete token. - 5.31 Nov 2018 Fixed false positive.
- 5.30 Jul 2018 Added.
This page describes a web site issue detected in HTML documents by SortSite Desktop and OnDemand Suite.
Rule ID: AccHtmlInputPasswordPurpose