Skip to content

Commit fcce1ac

Browse files
Addition: update allowances for label element (#556)
* Addition: update allowances for label element This update keeps the same allowances for when a `label` element is associated with a labelable element. But for instances where an author just uses the `label` element without associating it with a labelable element, then the ARIA allowances should replicate the `span` element. --------- Co-authored-by: Patrick H. Lauke <[email protected]>
1 parent a497ae5 commit fcce1ac

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2246,9 +2246,15 @@ <h2 id="docconformance">
22462246
</td>
22472247
<td>
22482248
<p>
2249-
<a><strong class="nosupport">No `role`</strong></a>
2249+
If a `label` element is implicitly or explicitly associated with a
2250+
<a href="data-html/https://html.spec.whatwg.org/multipage/forms.html#category-label">labelable element</a> then
2251+
<a><strong class="nosupport">no `role`</strong></a>
22502252
</p>
2251-
<p class="addition"><a>Naming Prohibited</a></p>
2253+
<p>
2254+
Otherwise, if the `label` is not associted with an element then <a><strong>any `role`</strong></a>,
2255+
though <code><a href="#index-aria-generic">generic</a></code> SHOULD NOT be used.
2256+
</p>
2257+
<p><a>Naming Prohibited</a> if exposed as the `generic` role, or if exposed as another role which prohibits naming.</p>
22522258
<p>
22532259
Otherwise, <a data-cite="wai-aria-1.2#global_states">global `aria-*` attributes</a>.
22542260
</p>

0 commit comments

Comments
 (0)