diff --git a/_rules/autocomplete-valid-value-73f2c2.md b/_rules/autocomplete-valid-value-73f2c2.md index b47b6f6348f..746b79d171c 100755 --- a/_rules/autocomplete-valid-value-73f2c2.md +++ b/_rules/autocomplete-valid-value-73f2c2.md @@ -24,7 +24,7 @@ acknowledgments: 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 of the following is true: - **hidden**: the element is not [visible][], and not [included in the accessibility tree][]; or -- **disabled**: the element has an `aria-disabled` [attribute value][] of `true`; or +- **disabled**: the element has the `disabled` attribute or the `aria-disabled` [attribute value][] of `true`; or - **fixed value**: the element is an `input` element with a `type` [attribute value][] of either `hidden`, `button`, `submit` or `reset`; or - **static**: the element is not part of [sequential focus navigation][] and has a [semantic role][] that is not a [widget role][]. @@ -45,8 +45,6 @@ Each test target's `autocomplete` [attribute value][] has a [correct autocomplet The `autocomplete` attribute is used on form fields that correspond to [Input Purposes for User Interface Components](https://www.w3.org/TR/WCAG21/#input-purposes) and collect information about the user. -If the `autocomplete` field is used to describe "custom" taxonomy, rather than that described in the list of `input` purposes, or the form fields do not collect information about the user, success Criterion [1.3.5 Identify Input Purpose][sc135] may be satisfied even if this rule failed. - The `type` attribute is used correctly according to the intended purpose of `input` elements. If an incorrect `type` attribute is used for `input` elements, this rule may fail elements that satisfy success Criterion [1.3.5 Identify Input Purpose][sc135]. For example if an `input` element has a `type` of `number`, but is expecting an e-mail address. The `aria-disabled` state is used on `input` elements which are not part of [sequential focus navigation][] and are not otherwise [operable](https://www.w3.org/TR/wai-aria-1.2/#dfn-operable). If this is not the case, this rule may be inapplicable on elements that are still [operable](https://www.w3.org/TR/wai-aria-1.2/#dfn-operable) and require a valid `autocomplete` attribute to satisfy success Criterion [1.3.5 Identify Input Purpose][sc135]. @@ -86,7 +84,8 @@ This `autocomplete` [attribute value][] only has the required token, and is vali ```html
- @@ -98,7 +97,7 @@ This `autocomplete` [attribute value][] only has the required token, and is vali This `autocomplete` [attribute value][] only has the required token, and is valid for a `textarea` element. Mixing upper and lower case letters is allowed for `autocomplete` attributes. ```html - + ``` #### Passed Example 4 @@ -114,7 +113,7 @@ This `autocomplete` [attribute value][] list includes a `work` token, allowed be This `autocomplete` [attribute value][] list includes a `section-` token, which can preface any [correct autocomplete field][]. The `email` token is allowed on `input` elements with a `type` [attribute value][] of `text`. ```html - + ``` #### Passed Example 6 @@ -122,7 +121,7 @@ This `autocomplete` [attribute value][] list includes a `section-` token, which This `autocomplete` [attribute value][] list includes `section-` and `billing` tokens. These tokens can preface any [correct autocomplete field][]. ```html - + ``` #### Passed Example 7 @@ -130,15 +129,7 @@ This `autocomplete` [attribute value][] list includes `section-` and `billing` t This `autocomplete` [attribute value][] list includes all allowed types of tokens in the correct order. The `email` token is allowed on `input` elements with a `type` [attribute value][] of `text`. ```html - -``` - -#### Passed Example 8 - -The `autocomplete` attribute value is on an `input` element that does not have a semantic role that is a widget role, but still participates in [sequential focus navigation][] because of the `tabindex` attribute. - -```html - + ``` ### Failed