From 742746a4ff2d6a9699e947fdeebc361e6e590d01 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Tue, 8 Oct 2024 13:42:58 -0400 Subject: [PATCH 1/2] Clarifications for HTML's autocomplete and aria-autocomplete --- html-aam/index.html | 50 ++++++++++++++++++++++++++++----------------- 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/html-aam/index.html b/html-aam/index.html index ca3f951e6..0f1922e5f 100644 --- a/html-aam/index.html +++ b/html-aam/index.html @@ -8538,8 +8538,7 @@

`autocomplete`

[[WAI-ARIA-1.2]] -

`aria-autocomplete`

-
Note: the ARIA attribute and the HTML attribute have disparate features.
+
Not mapped
@@ -8547,10 +8546,7 @@

`autocomplete`

MSAA + IAccessible2 -
- States: - `STATE_SUPPORTS_AUTOCOMPLETION` on text form controls until the value is overridden by control -
+
Not mapped
@@ -8562,10 +8558,7 @@

`autocomplete`

ATK -
- States: - `ATK_STATE_SUPPORTS_AUTOCOMPLETION` on text form controls until the value is overridden by control -
+
Not mapped
@@ -8577,8 +8570,16 @@

`autocomplete`

Comments - If the element includes both `autocomplete` and `aria-autocomplete` attributes with valid values, User Agents MUST expose only the `autocomplete` attribute value. The - `aria-autocomplete` attribute is not valid on a `form` element. +

+ Note: the `aria-autocomplete` attribute and the HTML `autocomplete` attribute have disparate features. + The `aria-autocomplete` attribute is not supported on the HTML `form` element or elements with an explicit ARIA `form` role. +

+

+ When used on a `form` element, the `autocomplete` attribute identifies whether form controls owned by the form + will have their autofill field name + set to "`on`" or "`off`" by default. See `autocomplete` for `input`, `select`, `textarea` for + control mappings. +

@@ -8599,8 +8600,14 @@

`autocomplete`

[[WAI-ARIA-1.2]] -

`aria-autocomplete`

-
Note: the ARIA attribute and the HTML attribute have disparate features.
+
+

If specivied `autocomplete=off` or the control is owned by a `form` with `autocomplete=off` - `aria-autocomplete=none`

+

Otherwise, `aria-autocomplete`

+
+
+

Note: the `aria-autocomplete` attribute and the HTML `autocomplete` attribute have disparate features, but they overlap + as mechanisms for user agents to expose the control's support for autocompletion.

+
@@ -8608,30 +8615,35 @@

`autocomplete`

MSAA + IAccessible2 -
States: `STATE_SUPPORTS_AUTOCOMPLETION`
+
Use WAI-ARIA mapping
UIA -
Not mapped
+
Use WAI-ARIA mapping
ATK -
States: `ATK_STATE_SUPPORTS_AUTOCOMPLETION`
+
Use WAI-ARIA mapping
AX -
Not mapped
+
Use WAI-ARIA mapping
Comments - If the element includes both `autocomplete` and `aria-autocomplete` attributes with valid values, User Agents MUST expose only the `autocomplete` attribute value. + +

+ If the form control has been specified as both `autocomplete=off` (whether due to explicit use of the attribute, or from inheriting the `off` state from a parent `form` element with `autocomplete=off`) and with an `aria-autocomplete` attribute with a valid value, user agents MUST expose only the `aria-autocomplete` attribute value. +

+

Otherwise, if the form control has an `autocomplete` attribute specified with a valid token value, and an `aria-autocomplete` attribute, then user agents MUST expose only the `autocomplete` attribute value.

+ From aa8f5f3b855ca9c04f6746f64c9b19e59e1beeb3 Mon Sep 17 00:00:00 2001 From: scottaohara Date: Tue, 8 Oct 2024 17:48:18 +0000 Subject: [PATCH 2/2] chore: prettier --- html-aam/index.html | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/html-aam/index.html b/html-aam/index.html index 0f1922e5f..1a386e44a 100644 --- a/html-aam/index.html +++ b/html-aam/index.html @@ -8571,14 +8571,13 @@

`autocomplete`

Comments

- Note: the `aria-autocomplete` attribute and the HTML `autocomplete` attribute have disparate features. - The `aria-autocomplete` attribute is not supported on the HTML `form` element or elements with an explicit ARIA `form` role. + Note: the `aria-autocomplete` attribute and the HTML `autocomplete` attribute have disparate features. The `aria-autocomplete` attribute is not supported on the HTML + `form` element or elements with an explicit ARIA `form` role.

- When used on a `form` element, the `autocomplete` attribute identifies whether form controls owned by the form - will have their autofill field name - set to "`on`" or "`off`" by default. See `autocomplete` for `input`, `select`, `textarea` for - control mappings. + When used on a `form` element, the `autocomplete` attribute identifies whether form controls owned by the form will have their + autofill field name set to "`on`" or "`off`" by default. See + `autocomplete` for `input`, `select`, `textarea` for control mappings.

@@ -8605,8 +8604,10 @@

`autocomplete`

Otherwise, `aria-autocomplete`

-

Note: the `aria-autocomplete` attribute and the HTML `autocomplete` attribute have disparate features, but they overlap - as mechanisms for user agents to expose the control's support for autocompletion.

+

+ Note: the `aria-autocomplete` attribute and the HTML `autocomplete` attribute have disparate features, but they overlap as mechanisms for user agents to expose the + control's support for autocompletion. +

@@ -8640,9 +8641,13 @@

`autocomplete`

Comments

- If the form control has been specified as both `autocomplete=off` (whether due to explicit use of the attribute, or from inheriting the `off` state from a parent `form` element with `autocomplete=off`) and with an `aria-autocomplete` attribute with a valid value, user agents MUST expose only the `aria-autocomplete` attribute value. + If the form control has been specified as both `autocomplete=off` (whether due to explicit use of the attribute, or from inheriting the `off` state from a parent `form` element with + `autocomplete=off`) and with an `aria-autocomplete` attribute with a valid value, user agents MUST expose only the `aria-autocomplete` attribute value. +

+

+ Otherwise, if the form control has an `autocomplete` attribute specified with a valid token value, and an `aria-autocomplete` attribute, then user agents MUST expose only the + `autocomplete` attribute value.

-

Otherwise, if the form control has an `autocomplete` attribute specified with a valid token value, and an `aria-autocomplete` attribute, then user agents MUST expose only the `autocomplete` attribute value.