Testar på krav:
- 1.3.5 Identifiser formål med inndata
Innhaldstype:
Krav til samsvar:
Applicability
This rule applies to any HTML input, select and textarea element with an autocomplete attribute value that is neither empty ("") nor only ASCII whitespace, except if one or more of the following is true:
Expectation
Each test target's autocomplete attribute value is a space separated list of one or more tokens that follow the HTML specification for Autofill detail tokens, which requires that the token list match the following in the correct order:
- An optional token that starts with "section-"; then
- An optional token of either "shipping" or "billing"; then
- An optional token of either "home", "work", "mobile", "fax" or "pager", only if the last token is "email", "impp", "tel" or "tel-*"; then
- A required token from the correct autocomplete field.
Assumptions
The autocomplete attribute is used on form fields that correspond to Input Purposes for User Interface Components and collect information about the user.
If the autocomplete attribute is used to describe "custom" taxonomy, for example using the custom autocomplete value "banner" (<input type="text" autocomplete="banner" />), success Criterion 1.3.5 Identify Input Purpose may be satisfied even if this rule failed.
The aria-disabled state is used on input elements which are not part of sequential focus navigation and are not otherwise operable. If this is not the case, this rule may be inapplicable on elements that are still operable and require a valid autocomplete attribute to satisfy success criterion 1.3.5 Identify Input Purpose.
The purpose of a control is programmatically identifiable even when its autocomplete attribute value is not an appropriate field name for the form control.