You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update permitted ARIA state or property for combobox role (#2322)
* update the rule for combobox role #rule-2311
* update the text #rule-2311
* Update aria-state-or-property-permitted-5c01ea.md
* Update _rules/aria-state-or-property-permitted-5c01ea.md
Update the property value
Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>
* update the required state and properties rule #rule-2311
* Update _rules/aria-state-or-property-permitted-5c01ea.md
Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>
---------
Co-authored-by: Wilco Fiers <WilcoFiers@users.noreply.github.com>
Copy file name to clipboardExpand all lines: _rules/aria-state-or-property-permitted-5c01ea.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,8 @@ The presence of prohibited ARIA attributes is often the result of a developer us
57
57
58
58
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).
59
59
60
+
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).
61
+
60
62
Assessing the value of the attribute is out of scope for this rule.
61
63
62
64
### Assumptions
@@ -126,26 +128,26 @@ The `aria-checked` [state][] is [required][] for the [semantic][semantic role] `
126
128
127
129
#### Passed Example 6
128
130
129
-
The `aria-controls`[property][] is [required][] for the [semantic][semantic role]`combobox`.
131
+
The `aria-expanded`[property][] is [required][] for the [semantic][semantic role]`combobox`.
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.
139
+
The `aria-expanded`[property][] is [required][] for the [semantic][semantic role]`combobox`.
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.
147
+
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.
0 commit comments