Skip to content

Commit 3ea271d

Browse files
authored
updating content in option mapping table and accName steps
1 parent 2e7a8f6 commit 3ea271d

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

html-aam/index.html

+11-9
Original file line numberDiff line numberDiff line change
@@ -11732,7 +11732,8 @@ <h4 id="att-label">`label`</h4>
1173211732
<tr>
1173311733
<th>Element(s)</th>
1173411734
<td>
11735-
<a data-cite="html/form-elements.html#attr-optgroup-label">`optgroup`</a>; <a data-cite="html/form-elements.html#attr-option-label">`option`</a>;
11735+
<a data-cite="html/form-elements.html#attr-optgroup-label">`optgroup`</a>;
11736+
<a data-cite="html/form-elements.html#attr-option-label">`option`</a>;
1173611737
<a data-cite="html/media.html#attr-track-label">`track`</a>
1173711738
</td>
1173811739
</tr>
@@ -11753,12 +11754,7 @@ <h4 id="att-label">`label`</h4>
1175311754
<tr>
1175411755
<th><a href="https://msdn.microsoft.com/en-us/library/ms726297%28v=VS.85%29.aspx">UIA</a></th>
1175511756
<td>
11756-
The target element of the `label` attribute has a `LabeledBy` property pointing to the element with the `label` attribute. Participates in
11757-
<a href="#accname-computation">name computation.</a>
11758-
<!--
11759-
This UIA definition doesn't seem right. May replace with:
11760-
<div class="name">Associates the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a></div>
11761-
-->
11757+
<div class="name">Associates the <a data-cite="accname-1.2/#dfn-accessible-name">accessible name</a></div>
1176211758
</td>
1176311759
</tr>
1176411760
<tr>
@@ -11774,7 +11770,13 @@ <h4 id="att-label">`label`</h4>
1177411770
<tr>
1177511771
<th>Comments</th>
1177611772
<td>
11777-
<!--
11773+
<div class="note">
11774+
<p>The `label` attribute behaves differently when declared on an `optgroup` element compared to an `option` element.</p>
11775+
<p>If the `label` attribute is declared on an `option` element, its value will become the rendered label of the `option` element, even if the `option` element has child elements.</p>
11776+
<p>If the `label` attribute is declared on an `optgroup` element that is a descendant of a customizable `select` element, and that `optgroup` has a child `legend` element, then the `legend` element takes priority. The `label` attribute's value will not be rendered or exposed to the accessibility tree as the name of the `opgroup`.
11777+
</div>
11778+
11779+
<!--
1177811780
FOR FUTURE PR https://github.com/w3c/html-aam/issues/568 :
1177911781
The `label` attribute can also participate in the <a data-cite="accname-1.2/#dfn-accessible-description">accessible descriptions</a> of
1178011782
an `option`, if the `option` is a child of a `datalist`.
@@ -16229,7 +16231,7 @@ <h4>`option` Element Accessible Name Computation</h4>
1622916231
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.
1623016232
</li>
1623116233
<li>
16232-
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.
16234+
If no `label` attribute is specified: use the <a data-cite="accname-1.2/#mapping_additional_nd_te">text equivalent computation</a> of the `option` element's subtree.
1623316235
</li>
1623416236
<li>
1623516237
Otherwise:

0 commit comments

Comments
 (0)