Skip to content

Commit ebdf3a6

Browse files
authored
Update: legend to provide name to optgroup
In regards to the updated content model for the select element and its allowed children, an `optgroup` can have a `legend` element as its first child, and this `legend` needs to be able to name the `optgroup` similarly to how a `legend` names a `fieldset`. see: whatwg/html#10586
1 parent a175b70 commit ebdf3a6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

html-aam/index.html

+8-3
Original file line numberDiff line numberDiff line change
@@ -4647,7 +4647,10 @@ <h4 id="el-legend">`legend`</h4>
46474647
</th>
46484648
<td>
46494649
<div class="role"><span class="type">Roles:</span> `ROLE_SYSTEM_STATICTEXT`; `IA2_ROLE_LABEL`</div>
4650-
<div class="relations"><span class="type">Relations:</span> `IA2_RELATION_LABEL_FOR` with the parent <a href="#el-fieldset">`fieldset`</a></div>
4650+
<div class="relations">
4651+
<span class="type">Relations:</span> `IA2_RELATION_LABEL_FOR` with the parent <a href="#el-fieldset">`fieldset`</a>
4652+
or <a href="#el-optgroup">`optgroup`</a>
4653+
</div>
46514654
</td>
46524655
</tr>
46534656
<tr>
@@ -4657,7 +4660,8 @@ <h4 id="el-legend">`legend`</h4>
46574660
<div class="properties">
46584661
<span class="type">Other properties:</span>
46594662
The `LabeledBy` property for the parent
4660-
<a href="#el-fieldset">`fieldset`</a> points to the UIA element for the `legend` element.
4663+
<a href="#el-fieldset">`fieldset`</a> or <a href="#el-optgroup">`optgroup`</a> points to the
4664+
UIA element for the `legend` element.
46614665
</div>
46624666
</td>
46634667
</tr>
@@ -4667,7 +4671,8 @@ <h4 id="el-legend">`legend`</h4>
46674671
<div class="role"><span class="type">Role:</span> `ATK_ROLE_LABEL`</div>
46684672
<div class="relations">
46694673
<span class="type">Relations:</span>
4670-
`ATK_RELATION_LABEL_FOR` with parent <a href="#el-fieldset">`fieldset`</a> element
4674+
`ATK_RELATION_LABEL_FOR` with parent <a href="#el-fieldset">`fieldset`</a>
4675+
or <a href="#el-optgroup">`optgroup`</a> element
46714676
</div>
46724677
</td>
46734678
</tr>

0 commit comments

Comments
 (0)