autocomplete-valid

autocomplete attribute must be a valid autofill value

automaticWCAG 1.3.5 (AA)confidence: highseverity: moderateperceivable

Checks that a non-empty autocomplete attribute is "on"/"off" or a well-formed autofill detail token list.

Applies to. Applies to form controls (input, select, textarea) with a non-empty autocomplete attribute.

Expectation. The value is "on"/"off" alone, or a well-formed autofill detail token list: an optional "section-*" token, then an optional "shipping"/"billing" token, then an optional contact-modality token (home/work/mobile/fax/pager/impp), then exactly one recognized field-name token (name, email, street-address, cc-number, tel, ...), optionally followed by "webauthn". A malformed value means the field is not reliably identified for assistive technology that relies on autocomplete to describe the expected input purpose.

Examples

pass
<input autocomplete="email">

"email" is a recognized autofill field-name token.

fail
<input autocomplete="emial">

"emial" is a typo, not a recognized autofill token.

View source