You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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
+
<!--
11778
11780
FOR FUTURE PR https://github.com/w3c/html-aam/issues/568 :
11779
11781
The `label` attribute can also participate in the <a data-cite="accname-1.2/#dfn-accessible-description">accessible descriptions</a> of
11780
11782
an `option`, if the `option` is a child of a `datalist`.
@@ -16229,7 +16231,7 @@ <h4>`option` Element Accessible Name Computation</h4>
16229
16231
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.
16230
16232
</li>
16231
16233
<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.
0 commit comments