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
Copy file name to clipboardExpand all lines: _rules/aria-required-owned-element-bc4a75.md
+54-1Lines changed: 54 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -141,14 +141,40 @@ This element with the `menu` role only owns an element with a `group` role. The
141
141
142
142
#### Passed Example 7
143
143
144
-
The element `ul` with an implicit `list` role owns an element `li` with an implicit role `listitem` role.
144
+
The element `ul` with an implicit `list` role owns an element `li` with an implicit `listitem` role.
145
145
146
146
```html
147
147
<ul>
148
148
<li>Item 1</li>
149
149
</ul>
150
150
```
151
151
152
+
#### Passed Example 8
153
+
154
+
The element `select` with an implicit `listbox` role owns elements `option` with implicit `option` roles.
155
+
156
+
```html
157
+
<selectmultiple>
158
+
<option>Item 1</option>
159
+
<option>Item 2</option>
160
+
<option>Item 3</option>
161
+
</select>
162
+
```
163
+
164
+
#### Passed Example 8
165
+
166
+
The element `table` with an implicit `table` role owns an element `tr` with implicit `row` role that owns elements `td` with implicit `cell` roles.
167
+
168
+
```html
169
+
<table>
170
+
<tr>
171
+
<td>Item 1</td>
172
+
<td>Item 2</td>
173
+
<td>Item 3</td>
174
+
</tr>
175
+
</table>
176
+
```
177
+
152
178
### Failed
153
179
154
180
#### Failed Example 1
@@ -235,6 +261,32 @@ This element with the `list` role owns an element with the `listitem` role and a
235
261
</div>
236
262
```
237
263
264
+
#### Failed Example 8
265
+
266
+
This element with the `menu` role owns `option` elements with implicit `option` role. The `option` role is not one of the [required owned elements][] for `menu`.
267
+
268
+
```html
269
+
<selectrole="menu">
270
+
<option>Item 1</option>
271
+
<option>Item 2</option>
272
+
<option>Item 3</option>
273
+
</select>
274
+
```
275
+
276
+
#### Failed Example 9
277
+
278
+
This element with the `menu` role owns `tr` elements with implicit `row` role. The `row` role is not one of the [required owned elements][] for `menu`. In addition, the `tr` element with implicit `row` role owns `td` elements with explicit `menuitem` roles. The `menuitem` role is not one of the [required owned elements][] for `row`.
279
+
280
+
```html
281
+
<tablerole="menu">
282
+
<tr>
283
+
<tdrole="menuitem">Item 1</td>
284
+
<tdrole="menuitem">Item 2</td>
285
+
<tdrole="menuitem">Item 3</td>
286
+
</tr>
287
+
</table>
288
+
```
289
+
238
290
### Inapplicable
239
291
240
292
#### Inapplicable Example 1
@@ -287,3 +339,4 @@ This element with the `menu` role has an `aria-busy` attribute set to `true`.
0 commit comments