From e47843a4e0e04351fc56763ae82768c9186b8b0a Mon Sep 17 00:00:00 2001
From: giacomo-petri <106394951+giacomo-petri@users.noreply.github.com>
Date: Fri, 5 Aug 2022 10:41:25 +0200
Subject: [PATCH 1/6] Update autocomplete-valid-value-73f2c2.md
---
_rules/autocomplete-valid-value-73f2c2.md | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/_rules/autocomplete-valid-value-73f2c2.md b/_rules/autocomplete-valid-value-73f2c2.md
index 0f19c090a36..3a6ec90fa9e 100755
--- a/_rules/autocomplete-valid-value-73f2c2.md
+++ b/_rules/autocomplete-valid-value-73f2c2.md
@@ -29,6 +29,7 @@ This rule applies to any [HTML][] `input`, `select` and `textarea` element with
- **toggle**: the `autocomplete` attribute consists of a single token that is an [ASCII case-insensitive][] match for the string `off` or the string `on`; or
- **disabled**: the element is a [disabled element]; or
- **fixed value**: the element is an `input` element with a `type` [attribute value][] of `hidden`, `button`, `submit` or `reset`; or
+- **fixed value**: the element is an `input` element with a `type` [attribute value][] of `button`, `checkbox`, `file`, `image`, `radio`, `reset` or `submit`; or
- **hidden**: the element is not [visible][], and not [included in the accessibility tree][]; or
- **static**: the element is not part of [sequential focus navigation][] and has a [semantic role][] that is not a [widget role][].
@@ -66,6 +67,9 @@ Many browsers provide auto-filling suggestions even when the control's `type` [a
The auto-completing feature of the `autocomplete` attribute benefits many users, but it is not required to satisfy success Criterion [1.3.5 Identify Input Purpose][sc135]. Setting `autocomplete="off"` on the element's [form owner](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#form-owner) prevents the user agent from completing it, but it does not prevent the `autocomplete` [attribute value][] from being programmatically identifiable.
+The intent of **fixed value** list item in Applicability section is to clearly define to which `input` element's `type` attribute [attribute value][] the `autocomplete` attribute applies.
+On an `input` element with a `type` [attribute value][] of `hidden`, the autocomplete attribute wears the [autofill anchor mantle](https://html.spec.whatwg.org/#autofill-anchor-mantle), describing the meaning of the given value. In all other cases, it wears the [autofill expectation mantle](https://html.spec.whatwg.org/#autofill-expectation-mantle).
+
### Bibliography
- [Understanding Success Criterion 1.3.5: Identify Input Purpose](https://www.w3.org/WAI/WCAG21/Understanding/identify-input-purpose.html)
From 17bc846cd49062feb0d39e8087aa9ebdea9140ac Mon Sep 17 00:00:00 2001
From: giacomo-petri <106394951+giacomo-petri@users.noreply.github.com>
Date: Thu, 11 Aug 2022 14:47:13 +0200
Subject: [PATCH 2/6] Update autocomplete-valid-value-73f2c2.md
---
_rules/autocomplete-valid-value-73f2c2.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/_rules/autocomplete-valid-value-73f2c2.md b/_rules/autocomplete-valid-value-73f2c2.md
index 3a6ec90fa9e..d532bb2bc8d 100755
--- a/_rules/autocomplete-valid-value-73f2c2.md
+++ b/_rules/autocomplete-valid-value-73f2c2.md
@@ -252,6 +252,22 @@ This `autocomplete` attribute is inapplicable because it has the `off` value.
```
+#### Inapplicable Example 8
+
+The `autocomplete` attribute does not apply to `input` type `submit` elements.
+
+```html
+
+```
+
+#### Inapplicable Example 9
+
+Even if the input explicitly specifiy the amount of the transasctions and user agents could use transaction amount information to suggest for example a credit card that has sufficient balance, the element is not [visible][], and not [included in the accessibility tree][]
+
+```html
+
+```
+
[ascii whitespace]: https://infra.spec.whatwg.org/#ascii-whitespace 'HTML ASCII whitespace 2020/08/12'
[ascii case-insensitive]: https://infra.spec.whatwg.org/#ascii-case-insensitive 'definition of ASCII case-insensitive'
[attribute value]: #attribute-value 'Definition of Attribute Value'
From 1882b4f270cf6fecc83362cca48e08b73da7e88a Mon Sep 17 00:00:00 2001
From: giacomo-petri <106394951+giacomo-petri@users.noreply.github.com>
Date: Mon, 22 Aug 2022 11:03:31 +0200
Subject: [PATCH 3/6] Update _rules/autocomplete-valid-value-73f2c2.md
Co-authored-by: HelenBurge <41951878+HelenBurge@users.noreply.github.com>
---
_rules/autocomplete-valid-value-73f2c2.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/_rules/autocomplete-valid-value-73f2c2.md b/_rules/autocomplete-valid-value-73f2c2.md
index d532bb2bc8d..9f13975383f 100755
--- a/_rules/autocomplete-valid-value-73f2c2.md
+++ b/_rules/autocomplete-valid-value-73f2c2.md
@@ -262,7 +262,7 @@ The `autocomplete` attribute does not apply to `input` type `submit` elements.
#### Inapplicable Example 9
-Even if the input explicitly specifiy the amount of the transasctions and user agents could use transaction amount information to suggest for example a credit card that has sufficient balance, the element is not [visible][], and not [included in the accessibility tree][]
+Even if the input explicitly specify the amount of the transactions and user agents could use transaction amount information to suggest for example a credit card that has sufficient balance, the element is not [visible][], and not [included in the accessibility tree][]
```html
From e109022f73cd22acd7c492d0635739074f0db6df Mon Sep 17 00:00:00 2001
From: giacomo-petri <106394951+giacomo-petri@users.noreply.github.com>
Date: Thu, 8 Sep 2022 20:33:42 +0200
Subject: [PATCH 4/6] Apply suggestions from code review
Co-authored-by: Jean-Yves Moyen
---
_rules/autocomplete-valid-value-73f2c2.md | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/_rules/autocomplete-valid-value-73f2c2.md b/_rules/autocomplete-valid-value-73f2c2.md
index 9f13975383f..f1002fe9fa4 100755
--- a/_rules/autocomplete-valid-value-73f2c2.md
+++ b/_rules/autocomplete-valid-value-73f2c2.md
@@ -26,12 +26,11 @@ 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 or more of the following is true:
-- **toggle**: the `autocomplete` attribute consists of a single token that is an [ASCII case-insensitive][] match for the string `off` or the string `on`; or
-- **disabled**: the element is a [disabled element]; or
-- **fixed value**: the element is an `input` element with a `type` [attribute value][] of `hidden`, `button`, `submit` or `reset`; or
-- **fixed value**: the element is an `input` element with a `type` [attribute value][] of `button`, `checkbox`, `file`, `image`, `radio`, `reset` or `submit`; or
-- **hidden**: the element is not [visible][], and not [included in the accessibility tree][]; or
-- **static**: the element is not part of [sequential focus navigation][] and has a [semantic role][] that is not a [widget role][].
+- toggle: the `autocomplete` attribute consists of a single token that is an [ASCII case-insensitive][] match for the string `off` or the string `on`; or
+- disabled: the element is a [disabled element]; or
+- fixed value: the element is an `input` element with a `type` [attribute value][] of `button`, `checkbox`, `file`, `image`, `radio`, `reset` or `submit`; or
+- hidden: the element is not [visible][], and not [included in the accessibility tree][]; or
+- static: the element is not part of [sequential focus navigation][] and has a [semantic role][] that is not a [widget role][].
## Expectation
@@ -67,7 +66,8 @@ Many browsers provide auto-filling suggestions even when the control's `type` [a
The auto-completing feature of the `autocomplete` attribute benefits many users, but it is not required to satisfy success Criterion [1.3.5 Identify Input Purpose][sc135]. Setting `autocomplete="off"` on the element's [form owner](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#form-owner) prevents the user agent from completing it, but it does not prevent the `autocomplete` [attribute value][] from being programmatically identifiable.
-The intent of **fixed value** list item in Applicability section is to clearly define to which `input` element's `type` attribute [attribute value][] the `autocomplete` attribute applies.
+The [fixed value](#73f2c2:fixed-value) condition in the Applicability is excluding `input` elements who do not consider the `autocomplete` attribute, based on their `type` [attribute value][]; `input` elements with a `type` [attribute value][] of `hidden` are excluded by the [hidden](#73f2c2:hidden) condition.
+
On an `input` element with a `type` [attribute value][] of `hidden`, the autocomplete attribute wears the [autofill anchor mantle](https://html.spec.whatwg.org/#autofill-anchor-mantle), describing the meaning of the given value. In all other cases, it wears the [autofill expectation mantle](https://html.spec.whatwg.org/#autofill-expectation-mantle).
### Bibliography
@@ -254,7 +254,7 @@ This `autocomplete` attribute is inapplicable because it has the `off` value.
#### Inapplicable Example 8
-The `autocomplete` attribute does not apply to `input` type `submit` elements.
+This `input` element has a [fixed value](#73f2c2:fixed-value) due to its `type` [attribute value][] of `submit`. `autocomplete` does not apply to Submit buttons.
```html
@@ -262,7 +262,7 @@ The `autocomplete` attribute does not apply to `input` type `submit` elements.
#### Inapplicable Example 9
-Even if the input explicitly specify the amount of the transactions and user agents could use transaction amount information to suggest for example a credit card that has sufficient balance, the element is not [visible][], and not [included in the accessibility tree][]
+This `input` element is [hidden](#73f2c2:hidden) because of its `type` [attribute value][] of `hidden` (following standard [User Agent stylesheet recommendations](https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements). Knowing the transaction amount may still be used in other fields, e.g. to suggest a card with sufficient balance; this is not tested by this rule.
```html
From 18dd4201712dcb3bbaabea6f7aa0a1d1a5b95f46 Mon Sep 17 00:00:00 2001
From: giacomo-petri <106394951+giacomo-petri@users.noreply.github.com>
Date: Thu, 29 Sep 2022 15:16:22 +0200
Subject: [PATCH 5/6] Update autocomplete-valid-value-73f2c2.md
---
_rules/autocomplete-valid-value-73f2c2.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/_rules/autocomplete-valid-value-73f2c2.md b/_rules/autocomplete-valid-value-73f2c2.md
index f1002fe9fa4..f7edf74730d 100755
--- a/_rules/autocomplete-valid-value-73f2c2.md
+++ b/_rules/autocomplete-valid-value-73f2c2.md
@@ -257,7 +257,7 @@ This `autocomplete` attribute is inapplicable because it has the `off` value.
This `input` element has a [fixed value](#73f2c2:fixed-value) due to its `type` [attribute value][] of `submit`. `autocomplete` does not apply to Submit buttons.
```html
-
+
```
#### Inapplicable Example 9
From 1fce114d9521a7834f6a563c2a37e0ea2d21e5cd Mon Sep 17 00:00:00 2001
From: giacomo-petri <106394951+giacomo-petri@users.noreply.github.com>
Date: Thu, 23 Feb 2023 17:04:06 +0100
Subject: [PATCH 6/6] Update autocomplete-valid-value-73f2c2.md
---
_rules/autocomplete-valid-value-73f2c2.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/_rules/autocomplete-valid-value-73f2c2.md b/_rules/autocomplete-valid-value-73f2c2.md
index 8d96647a9c9..66d40421ab0 100755
--- a/_rules/autocomplete-valid-value-73f2c2.md
+++ b/_rules/autocomplete-valid-value-73f2c2.md
@@ -26,11 +26,11 @@ 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 or more of the following is true:
-- toggle: the `autocomplete` attribute consists of a single token that is an [ASCII case-insensitive][] match for the string `off` or the string `on`; or
-- disabled: the element is a [disabled element]; or
-- fixed value: the element is an `input` element with a `type` [attribute value][] of `button`, `checkbox`, `file`, `image`, `radio`, `reset` or `submit`; or
-- hidden: the element is not [visible][], and not [included in the accessibility tree][]; or
-- static: the element is not part of [sequential focus navigation][] and has a [semantic role][] that is not a [widget role][].
+- toggle: the `autocomplete` attribute consists of a single token that is an [ASCII case-insensitive][] match for the string `off` or the string `on`; or
+- disabled: the element is a [disabled element]; or
+- fixed value: the element is an `input` element with a `type` [attribute value][] of `button`, `checkbox`, `file`, `image`, `radio`, `reset` or `submit`; or
+- hidden: the element is not [visible][], and not [included in the accessibility tree][]; or
+- static: the element is not part of [sequential focus navigation][] and has a [semantic role][] that is not a [widget role][].
## Expectation
@@ -274,7 +274,7 @@ This `input` element has a [fixed value](#73f2c2:fixed-value) due to its `type`
#### Inapplicable Example 9
-This `input` element is [hidden](#73f2c2:hidden) because of its `type` [attribute value][] of `hidden` (following standard [User Agent stylesheet recommendations](https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements). Knowing the transaction amount may still be used in other fields, e.g. to suggest a card with sufficient balance; this is not tested by this rule.
+This `input` element is [hidden](#73f2c2:hidden) because of its `type` [attribute value][] of `hidden` (following standard [User Agent style sheet recommendations](https://html.spec.whatwg.org/multipage/rendering.html#hidden-elements). Knowing the transaction amount may still be used in other fields, e.g. to suggest a card with sufficient balance; this is not tested by this rule.
```html