Skip to content

Commit

Permalink
updating option naming steps wording
Browse files Browse the repository at this point in the history
keeping in alignment with wording updates in #2395
  • Loading branch information
scottaohara authored Dec 11, 2024
1 parent bbb68d2 commit 6e4452c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions html-aam/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16219,16 +16219,22 @@ <h4>`fieldset` Element Accessible Name Computation</h4>
<h4>`option` Element Accessible Name Computation</h4>
<ol>
<li>
If the `option` 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
If the `option` 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: use the value of the `option` element's `label` attribute.
If the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a> is still empty: use the value of the `option` element's `label` attribute.
</li>
<li>Otherwise if no `label` attribute is specified use the `option` element subtree.</li>
<li>Otherwise use `title` attribute.</li>
<li>If none of the above yield a usable text string there is no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.</li>
<li>
If no `label` attribute is specified, or its value is the empty string: use the <a data-cite="accname-1.2/#mapping_additional_nd_te">text equivalent computation</a> of the `option` element's subtree.
</li>
<li>
Otherwise:
use the value of the element's `title` attribute.
</li>
<li>If none of the above yield a usable text string there is no <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a>.</li
</ol>
<p class="note">
An `option` element's `label` attribute will override the rendering of an `option` element's author defined descendents. Instead, the
Expand Down

0 comments on commit 6e4452c

Please sign in to comment.