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

Change history

  • 6.49 May 2023 Allow webauthn autocomplete 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