autocomplete attributes have a valid value
This rule tests conformance of the following accessibility requirements:
This rule checks that
autocomplete attributes have a valid value.
autocompleteattribute is a case-insensitive match for either
- the element is neither visible nor included in the accessibility tree; or
- the element is an
<input>element with a
typeattribute in the
Submit Button, or
Reset Buttonstate; or
- the element has a
- the element has an
aria-disabledattribute with a value of
- the element has a negative
tabindexattribute, and a semantic role that is not a widget.
- The value of the attribute is valid according to the specification of
autocompleteattributes wearing the autofill expectation mantle. As such, the value must consist of either the case-insensitive string
on, or a list of autofill detail tokens with an autofill field.
This rule makes no assumptions.
This rule has the following accessibility support concern:
autocompleteattribute is a promising technique for supporting personalization on the web, support is limited.
These these elements have a valid
autocomplete attribute and therefore pass the rule:
<input autocomplete="username" />
<textarea autocomplete="section-primary shipping work email"></textarea>
<select autocomplete="bday-month"> <option>January</option> <option>...</option> </select>
These elements have either an unknown
autocomplete value, or the terms form an invalid combination, and therefore fail the rule:
<input autocomplete="badterm" />
<input autocomplete="work photo" />
<input autocomplete="work shipping email" />
These elements are not visible and are therefore inapplicable:
<input autocomplete="username" style="display:none" />
<input type="hidden" autocomplete="username" />
These elements are disabled and are therefore inapplicable:
<input autocomplete="username" disabled />
<input autocomplete="username" aria-disabled="true" />
This document includes material copied from or derived from https://act-rules.github.io/rules/73f2c2/. Copyright © 2021 W3C® (MIT, ERCIM, Keio, Beihang).