Skip to content

Commit 5d67661

Browse files
Update aria-state-or-property-permitted-5c01ea.md (#2255)
1 parent f9ee5d5 commit 5d67661

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_rules/aria-state-or-property-permitted-5c01ea.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,23 +129,23 @@ The `aria-checked` [state][] is [required][] for the [semantic][semantic role] `
129129
The `aria-controls` [property][] is [required][] for the [semantic][semantic role] `combobox`.
130130

131131
```html
132-
<div role="combobox" aria-controls="id1" aria-expanded="false">My combobox</div>
132+
<div role="combobox" aria-controls="id1" aria-expanded="false" aria-label="My combobox">My combobox</div>
133133
```
134134

135135
#### Passed Example 7
136136

137137
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.
138138

139139
```html
140-
<div role="combobox" aria-expanded="false" aria-controls>My combobox</div>
140+
<div role="combobox" aria-expanded="false" aria-controls aria-label="My combobox">My combobox</div>
141141
```
142142

143143
#### Passed Example 8
144144

145145
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.
146146

147147
```html
148-
<div role="combobox" aria-expanded="false" aria-controls="">My combobox</div>
148+
<div role="combobox" aria-expanded="false" aria-controls="" aria-label="My combobox">My combobox</div>
149149
```
150150

151151
#### Passed Example 9

0 commit comments

Comments
 (0)