From 90dc69d4f6c4572398a0d0729e5b42a540218b14 Mon Sep 17 00:00:00 2001 From: Shunguo Date: Wed, 16 Apr 2025 14:36:08 -0500 Subject: [PATCH 1/6] update the rule for combobox role #rule-2311 --- ...aria-state-or-property-permitted-5c01ea.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 53f865721c..899db0fff2 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -126,7 +126,7 @@ The `aria-checked` [state][] is [required][] for the [semantic][semantic role] ` #### Passed Example 6 -The `aria-controls` [property][] is [required][] for the [semantic][semantic role] `combobox`. +The `aria-expanded` [property][] is [required][] for the [semantic][semantic role] `combobox`. ```html @@ -134,18 +134,18 @@ The `aria-controls` [property][] is [required][] for the [semantic][semantic rol #### Passed Example 7 -The `aria-controls` [property][] is [required][] for the [semantic][semantic role] `combobox`. [WAI-ARIA states and properties][wai-aria state or property] with empty value are still applicable to this rule. +The `aria-expanded` [property][] is [required][] for the [semantic][semantic role] `combobox`. ```html - +
My combobox
``` #### Passed Example 8 -The `aria-controls` [property][] is [required][] for the [semantic][semantic role] `combobox`. [WAI-ARIA states and properties][wai-aria state or property] with empty value (specified as an empty string) are still applicable to this rule. +The `aria-expanded` [property][] is [required][] for the [semantic][semantic role] `combobox`. [WAI-ARIA states and properties][wai-aria state or property] with `undefined` value is valid still applicable to this rule. ```html - +
My combobox
``` #### Passed Example 9 @@ -181,8 +181,13 @@ This `div` element has an [explicit role][] of `switch`; the `aria-required` [pr ```html
Notifications - - + + From d0eba46358626eae5c22e79b3cd8efee50807615 Mon Sep 17 00:00:00 2001 From: Shunguo Date: Wed, 16 Apr 2025 14:50:20 -0500 Subject: [PATCH 2/6] update the text #rule-2311 --- _rules/aria-state-or-property-permitted-5c01ea.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 899db0fff2..97831c4e60 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -142,7 +142,7 @@ The `aria-expanded` [property][] is [required][] for the [semantic][semantic rol #### Passed Example 8 -The `aria-expanded` [property][] is [required][] for the [semantic][semantic role] `combobox`. [WAI-ARIA states and properties][wai-aria state or property] with `undefined` value is valid still applicable to this rule. +The `aria-expanded` [property][] is [required][] for the [semantic][semantic role] `combobox`. [WAI-ARIA states and properties][wai-aria state or property] with `undefined` value is still applicable to this rule. ```html
My combobox
From 6e61093e066347d556326983a0fe63aa10f4c025 Mon Sep 17 00:00:00 2001 From: Shunguo Date: Wed, 16 Apr 2025 14:51:43 -0500 Subject: [PATCH 3/6] Update aria-state-or-property-permitted-5c01ea.md --- _rules/aria-state-or-property-permitted-5c01ea.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 97831c4e60..9b2469f64e 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -142,7 +142,7 @@ The `aria-expanded` [property][] is [required][] for the [semantic][semantic rol #### Passed Example 8 -The `aria-expanded` [property][] is [required][] for the [semantic][semantic role] `combobox`. [WAI-ARIA states and properties][wai-aria state or property] with `undefined` value is still applicable to this rule. +The `aria-expanded` [property][] is [required][] for the [semantic][semantic role] `combobox`. [WAI-ARIA states and properties][wai-aria state or property] with `undefined` value are still applicable to this rule. ```html
My combobox
From 0e3efb53742768a8970bb45236e292652ddca0bd Mon Sep 17 00:00:00 2001 From: Shunguo Yan Date: Thu, 1 May 2025 08:56:46 -0500 Subject: [PATCH 4/6] Update _rules/aria-state-or-property-permitted-5c01ea.md Update the property value Co-authored-by: Wilco Fiers --- _rules/aria-state-or-property-permitted-5c01ea.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 9b2469f64e..c493c7f02e 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -137,7 +137,7 @@ The `aria-expanded` [property][] is [required][] for the [semantic][semantic rol The `aria-expanded` [property][] is [required][] for the [semantic][semantic role] `combobox`. ```html -
My combobox
+ ``` #### Passed Example 8 From b6139e58824ade5669c4224f2854f8c95110ba36 Mon Sep 17 00:00:00 2001 From: Shunguo Date: Wed, 7 May 2025 16:17:50 -0500 Subject: [PATCH 5/6] update the required state and properties rule #rule-2311 --- _rules/aria-state-or-property-permitted-5c01ea.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index c493c7f02e..5b1743d666 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -57,6 +57,8 @@ The presence of prohibited ARIA attributes is often the result of a developer us In HTML, there are language features that do not have corresponding implicit WAI-ARIA semantics. As per [ARIA in HTML](https://www.w3.org/TR/html-aria/), those elements can have [global states or properties][global]. Some of those elements can also have [inherited][], [supported][], or [required][] [states][state] or [properties][property] that correspond to a [WAI-ARIA role](https://www.w3.org/TR/wai-aria-1.2/#introroles). For example, the `audio` element has no corresponding ARIA semantics but it can have [inherited][], [supported][], or [required][] [states][state] or [properties][property] of the [`application` role](https://www.w3.org/TR/wai-aria-1.2/#application). +Note that required WAI-ARIA states or properties for a role may change with the advance of the WAI-ARIA specifications. For example, both aria-expanded and aria-controls were required in [ARIA 1.2](<[https://](https://www.w3.org/TR/wai-aria-1.2/#combobox)https://>) for combobox role, but the aria-controls was removed from required states or properties in [ARIA 1.3](<[https://](https://www.w3.org/TR/wai-aria-1.3/#combobox)https://>). The examples in this rule follow [ARIA 1.3](<[https://](https://www.w3.org/TR/wai-aria-1.3/#combobox)https://>). + Assessing the value of the attribute is out of scope for this rule. ### Assumptions From da1650e3926bbdb6d73591587e049b38d19ad72d Mon Sep 17 00:00:00 2001 From: Shunguo Yan Date: Thu, 8 May 2025 09:43:22 -0500 Subject: [PATCH 6/6] Update _rules/aria-state-or-property-permitted-5c01ea.md Co-authored-by: Wilco Fiers --- _rules/aria-state-or-property-permitted-5c01ea.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 059fbb6f5b..6c9f7d43c6 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -57,7 +57,7 @@ The presence of prohibited ARIA attributes is often the result of a developer us In HTML, there are language features that do not have corresponding implicit WAI-ARIA semantics. As per [ARIA in HTML](https://www.w3.org/TR/html-aria/), those elements can have [global states or properties][global]. Some of those elements can also have [inherited][], [supported][], or [required][] [states][state] or [properties][property] that correspond to a [WAI-ARIA role](https://www.w3.org/TR/wai-aria-1.2/#introroles). For example, the `audio` element has no corresponding ARIA semantics but it can have [inherited][], [supported][], or [required][] [states][state] or [properties][property] of the [`application` role](https://www.w3.org/TR/wai-aria-1.2/#application). -Note that required WAI-ARIA states or properties for a role may change with the advance of the WAI-ARIA specifications. For example, both aria-expanded and aria-controls were required in [ARIA 1.2](<[https://](https://www.w3.org/TR/wai-aria-1.2/#combobox)https://>) for combobox role, but the aria-controls was removed from required states or properties in [ARIA 1.3](<[https://](https://www.w3.org/TR/wai-aria-1.3/#combobox)https://>). The examples in this rule follow [ARIA 1.3](<[https://](https://www.w3.org/TR/wai-aria-1.3/#combobox)https://>). +Note that required WAI-ARIA states or properties for a role may change with the advance of the WAI-ARIA specifications. For example, both aria-expanded and aria-controls were required in [ARIA 1.2](https://www.w3.org/TR/wai-aria-1.2/#combobox) for combobox role, but the aria-controls was removed from required states or properties in [ARIA 1.3](https://www.w3.org/TR/wai-aria-1.3/#combobox). The examples in this rule follow [ARIA 1.3](https://www.w3.org/TR/wai-aria-1.3/#combobox). Assessing the value of the attribute is out of scope for this rule.