Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: legend to provide name to optgroup #2360

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 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 Expand Up @@ -16147,6 +16152,26 @@ <h4>`fieldset` Element Accessible Name Computation</h4>
<li>Otherwise, there is no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.</li>
</ol>
</section>
<section>
<h4>`optgroup` Element Accessible Name Computation</h4>
<ol>
<li>
If the `optgroup` element has an <a data-cite="wai-aria-1.2/#aria-label">`aria-label`</a> or an <a data-cite="wai-aria-1.2/#aria-labelledby">`aria-labelledby`</a> attribute the
<a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is to be calculated using the algorithm defined in
<a href="" class="accname">Accessible Name and Description: Computation and API Mappings</a>.
</li>
<li>
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: if the `optgroup` element has a
<a href="https://dom.spec.whatwg.org/#concept-tree-child">child</a> that is a <code>legend</code> element, then use the subtree of the first such element.
</li>
<li>
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then: if the `optgroup` element has a
<a data-cite="html/form-elements.html#attr-optgroup-label">label</a> attribute, then use that attribute.
</li>
<li>If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty, then:, if the `optgroup` element has a `title` attribute, then use that attribute.</li>
<li>Otherwise, there is no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.</li>
</ol>
</section>
<section>
<h4>`output` Element Accessible Name Computation</h4>
<ol>
Expand Down
Loading