Skip to content

Commit b10da17

Browse files
committed
add more Pass and Fail test cases
1 parent e248047 commit b10da17

File tree

1 file changed

+54
-1
lines changed

1 file changed

+54
-1
lines changed

_rules/aria-required-owned-element-bc4a75.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,40 @@ This element with the `menu` role only owns an element with a `group` role. The
141141

142142
#### Passed Example 7
143143

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

146146
```html
147147
<ul>
148148
<li>Item 1</li>
149149
</ul>
150150
```
151151

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+
<select multiple>
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+
152178
### Failed
153179

154180
#### Failed Example 1
@@ -235,6 +261,32 @@ This element with the `list` role owns an element with the `listitem` role and a
235261
</div>
236262
```
237263

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+
<select role="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+
<table role="menu">
282+
<tr>
283+
<td role="menuitem">Item 1</td>
284+
<td role="menuitem">Item 2</td>
285+
<td role="menuitem">Item 3</td>
286+
</tr>
287+
</table>
288+
```
289+
238290
### Inapplicable
239291

240292
#### Inapplicable Example 1
@@ -287,3 +339,4 @@ This element with the `menu` role has an `aria-busy` attribute set to `true`.
287339
[wai-aria graphics module]: https://www.w3.org/TR/graphics-aria-1.0/ 'WAI-ARIA Graphics Module 1.0'
288340
[html or svg element]: #namespaced-element
289341
[inclusive ancestor]: https://dom.spec.whatwg.org/#concept-tree-inclusive-ancestor 'DOM Definition of Inclusive Ancestor'
342+
[implicit wai-aria semantics]: https://w3c.github.io/aria/#implicit_semantics

0 commit comments

Comments
 (0)