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
The `div` element with role `heading` has an [accessible name][] provided by its content.
124
113
125
114
```html
126
115
<divrole="heading"aria-level="1">Terms</div>
127
116
```
128
117
129
-
#### Passed Example 7
118
+
#### Passed Example 6
130
119
131
120
This `div` element with role `heading` is not [visible][], but is still [included in the accessibility tree][]. It has a non-empty [accessible name][] provided by its content.
The `div` element with role `link` has an [accessible name][] provided by its content.
140
129
@@ -181,49 +170,29 @@ The `div` element with role `checkbox` doesn't have an [accessible name][].
181
170
182
171
#### Failed Example 5
183
172
184
-
The `dialog` role accepts an [accessible name][] only from the author and not from its content. Therefore, the `div` element with role `dialog` doesn't have an [accessible name][].
185
-
186
-
```html
187
-
<divrole="dialog"aria-modal="true"tabindex="-1">
188
-
<h1>Terms</h1>
189
-
<p>These are our terms.</p>
190
-
</div>
191
-
```
192
-
193
-
#### Failed Example 6
194
-
195
173
The `div` element with role `heading` has an empty [accessible name][] due to the `display: none` CSS property set to its content.
The `div` element with role `button` has an empty [accessible name][] because the `value` attribute does not count in the computation of the [accessible name][].
213
182
214
183
```html
215
184
<divrole="button"value="test"></div>
216
185
```
217
186
218
-
#### Failed Example 9
187
+
#### Failed Example 7
219
188
220
189
This `div` element with role `button` is not [visible][], but is still [included in the accessibility tree][]. It doesn't have an [accessible name][], therefore failing the rule.
0 commit comments