Skip to content

Commit 484e7b7

Browse files
authored
ARIA required owned elm; fix parser issue in pass 3 (#1850)
* ARIA required owned elm; fix parser issue in pass 3 * Update aria-required-owned-element-bc4a75.md
1 parent 17955a4 commit 484e7b7

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,28 +81,16 @@ This element with the `list` role only owns elements with the `listitem` role. T
8181

8282
#### Passed Example 2
8383

84-
This element with the `tablist` role only owns elements with the `tab` role. The `tab` role is one of the [required owned elements][] for `tablist`.
85-
86-
```html
87-
<ul role="tablist">
88-
<li role="tab">Tab 1</li>
89-
<li role="tab">Tab 2</li>
90-
</ul>
91-
```
92-
93-
#### Passed Example 3
94-
9584
This element with the `grid` role only owns elements with the `row` role, and the element with the `row` role only owns elements with the `cell` role. The `row` role is one of the [required owned elements][] for `grid`, and `cell` is one of the [required owned elements][] for `row`.
96-
9785
```html
9886
<table role="grid">
9987
<tr role="row">
100-
<span role="cell">Item 1</span>
88+
<td role="cell">Item 1</td>
10189
</tr>
10290
</table>
10391
```
10492

105-
#### Passed Example 4
93+
#### Passed Example 3
10694

10795
This element with the `menu` role only owns elements with the `menuitem`, `menuitemradio` and `menuitemcheckbox` role. These roles are all [required owned elements][] for `menu`. The element with the `none` role is not [owned by][] the `menu` because it is not [included in the accessibility tree][].
10896

@@ -115,6 +103,18 @@ This element with the `menu` role only owns elements with the `menuitem`, `menui
115103
</div>
116104
```
117105

106+
#### Passed Example 4
107+
108+
This element with the `tablist` role only owns elements with the `tab` role. The `tab` role is one of the [required owned elements][] for `tablist`. The `li` element is ignored because it has an [explicit semantic role][] of `none`.
109+
110+
```html
111+
<ul role="tablist">
112+
<li role="none">
113+
<span role="tab">Tab 1</span>
114+
</li>
115+
</ul>
116+
```
117+
118118
#### Passed Example 5
119119

120120
This element with the `list` role only owns elements with the `listitem` role through the `aria-owns` attribute. The `listitem` role is one of the [required owned elements][] for `list`.

0 commit comments

Comments
 (0)