Skip to content

Commit

Permalink
Update: legend to provide name to optgroup
Browse files Browse the repository at this point in the history
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
  • Loading branch information
scottaohara authored Oct 22, 2024
1 parent a175b70 commit ebdf3a6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions html-aam/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4647,7 +4647,10 @@ <h4 id="el-legend">`legend`</h4>
</th>
<td>
<div class="role"><span class="type">Roles:</span> `ROLE_SYSTEM_STATICTEXT`; `IA2_ROLE_LABEL`</div>
<div class="relations"><span class="type">Relations:</span> `IA2_RELATION_LABEL_FOR` with the parent <a href="#el-fieldset">`fieldset`</a></div>
<div class="relations">
<span class="type">Relations:</span> `IA2_RELATION_LABEL_FOR` with the parent <a href="#el-fieldset">`fieldset`</a>
or <a href="#el-optgroup">`optgroup`</a>
</div>
</td>
</tr>
<tr>
Expand All @@ -4657,7 +4660,8 @@ <h4 id="el-legend">`legend`</h4>
<div class="properties">
<span class="type">Other properties:</span>
The `LabeledBy` property for the parent
<a href="#el-fieldset">`fieldset`</a> points to the UIA element for the `legend` element.
<a href="#el-fieldset">`fieldset`</a> or <a href="#el-optgroup">`optgroup`</a> points to the
UIA element for the `legend` element.
</div>
</td>
</tr>
Expand All @@ -4667,7 +4671,8 @@ <h4 id="el-legend">`legend`</h4>
<div class="role"><span class="type">Role:</span> `ATK_ROLE_LABEL`</div>
<div class="relations">
<span class="type">Relations:</span>
`ATK_RELATION_LABEL_FOR` with parent <a href="#el-fieldset">`fieldset`</a> element
`ATK_RELATION_LABEL_FOR` with parent <a href="#el-fieldset">`fieldset`</a>
or <a href="#el-optgroup">`optgroup`</a> element
</div>
</td>
</tr>
Expand Down

0 comments on commit ebdf3a6

Please sign in to comment.