From 166785700573bad4fbea393c7a0a88cc144cf957 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Wed, 29 Jan 2025 17:43:08 -0500 Subject: [PATCH 1/5] Allow aria-valuetext for use with combobox role closes #2382 and is related to #2344 / #2369 This PR adds aria-valuetext as a supported property for the combobox role. the `aria-valuetext` definition is slightly updated to indicate that the attribute can be used on other supported roles. I'm not sure if we want to do any further updates to that section in this PR - or if that really should be handled in a larger PR to resolve https://github.com/w3c/aria/issues/711 --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 73f45be7e..d1727a284 100644 --- a/index.html +++ b/index.html @@ -2843,6 +2843,7 @@

Definition of Roles

following:

@@ -16012,7 +16014,7 @@

Definitions of States and Properties (all aria-* attributes)

aria-valuetext
-

Defines the human readable text alternative of aria-valuenow for a range widget.

+

Defines the human readable text alternative of aria-valuenow for a range widget, or other widget roles which support the attribute.

This property is used, for example, on a range widget such as a slider or progress bar.

If the aria-valuetext attribute is set, authors SHOULD also set the aria-valuenow attribute, unless that value is unknown (for example, on an indeterminate From 175f96e8babbeab5dce7e94336f9b91e8c3f607b Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Thu, 30 Jan 2025 11:04:38 -0500 Subject: [PATCH 2/5] Update aria-valuetext property description --- index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/index.html b/index.html index d1727a284..18b6583a9 100644 --- a/index.html +++ b/index.html @@ -2843,7 +2843,6 @@

Definition of Roles

following:

    -
  • If the aria-valuetext attribute is specified on the element with the combobox role, the value of the attribute is the value of the combobox element.
  • If the combobox element is a host language element that provides a value, such as an HTML input element, the value of the combobox is the value of that element. @@ -2950,7 +2949,6 @@

    Definition of Roles

  • aria-invalid
  • aria-readonly
  • aria-required
  • -
  • aria-valuetext
@@ -16014,7 +16012,7 @@

Definitions of States and Properties (all aria-* attributes)

aria-valuetext
-

Defines the human readable text alternative of aria-valuenow for a range widget, or other widget roles which support the attribute.

+

Defines the human readable text alternative of aria-valuenow for a range widget, or a text alternative for the value of supported custom or native widgets that support the attribute.

This property is used, for example, on a range widget such as a slider or progress bar.

If the aria-valuetext attribute is set, authors SHOULD also set the aria-valuenow attribute, unless that value is unknown (for example, on an indeterminate From 079b6c838e293bea871428c229a7e13526a74d77 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Thu, 30 Jan 2025 11:06:02 -0500 Subject: [PATCH 3/5] Update aria-valuetext description in index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 18b6583a9..55434ec1c 100644 --- a/index.html +++ b/index.html @@ -16012,7 +16012,7 @@

Definitions of States and Properties (all aria-* attributes)

aria-valuetext
-

Defines the human readable text alternative of aria-valuenow for a range widget, or a text alternative for the value of supported custom or native widgets that support the attribute.

+

Defines the human readable text alternative of aria-valuenow for a range widget, or a text alternative for the value of custom ARIA or native widgets that support the attribute.

This property is used, for example, on a range widget such as a slider or progress bar.

If the aria-valuetext attribute is set, authors SHOULD also set the aria-valuenow attribute, unless that value is unknown (for example, on an indeterminate From 4c77ae3ff9dd2d04983a4a3cfcd33c0203d14037 Mon Sep 17 00:00:00 2001 From: Scott O'Hara Date: Thu, 6 Feb 2025 15:03:40 -0500 Subject: [PATCH 4/5] Update index.html Co-authored-by: Valerie Young --- index.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/index.html b/index.html index 55434ec1c..3bc09c57f 100644 --- a/index.html +++ b/index.html @@ -16014,10 +16014,7 @@

Definitions of States and Properties (all aria-* attributes)

Defines the human readable text alternative of aria-valuenow for a range widget, or a text alternative for the value of custom ARIA or native widgets that support the attribute.

This property is used, for example, on a range widget such as a slider or progress bar.

-

- If the aria-valuetext attribute is set, authors SHOULD also set the aria-valuenow attribute, unless that value is unknown (for example, on an indeterminate - progressbar). -

+

If the aria-valuetext attribute is set on a range widget, authors SHOULD also set the aria-valuenow attribute, unless that value is unknown (for example, on an indeterminate progressbar).

Authors SHOULD only set the aria-valuetext attribute when the rendered value cannot be meaningfully represented as a number. For example, a slider might have rendered values of small, medium, and large. In this case, the values of aria-valuenow could range from 1 through 3, which indicate the position of From 4bd66f6acb6dea455464158c81e6b718704f01d6 Mon Sep 17 00:00:00 2001 From: pkra Date: Fri, 7 Mar 2025 17:00:34 +0000 Subject: [PATCH 5/5] chore: prettier --- index.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 3bc09c57f..4b1727d1d 100644 --- a/index.html +++ b/index.html @@ -16012,9 +16012,15 @@

Definitions of States and Properties (all aria-* attributes)

aria-valuetext
-

Defines the human readable text alternative of aria-valuenow for a range widget, or a text alternative for the value of custom ARIA or native widgets that support the attribute.

+

+ Defines the human readable text alternative of aria-valuenow for a range widget, or a text alternative for the value of custom ARIA or native + widgets that support the attribute. +

This property is used, for example, on a range widget such as a slider or progress bar.

-

If the aria-valuetext attribute is set on a range widget, authors SHOULD also set the aria-valuenow attribute, unless that value is unknown (for example, on an indeterminate progressbar).

+

+ If the aria-valuetext attribute is set on a range widget, authors SHOULD also set the aria-valuenow attribute, unless that value is unknown (for example, + on an indeterminate progressbar). +

Authors SHOULD only set the aria-valuetext attribute when the rendered value cannot be meaningfully represented as a number. For example, a slider might have rendered values of small, medium, and large. In this case, the values of aria-valuenow could range from 1 through 3, which indicate the position of