Skip to content

Commit 7810360

Browse files
authored
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.
1 parent 7a5aa81 commit 7810360

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
@@ -2236,9 +2236,15 @@ <h2 id="docconformance">
22362236
</td>
22372237
<td>
22382238
<p>
2239-
<a><strong class="nosupport">No `role`</strong></a>
2239+
If a `label` element is implicitly or explicitly associated with a
2240+
<a href="data-html/https://html.spec.whatwg.org/multipage/forms.html#category-label">labelable element</a> then
2241+
<a><strong class="nosupport">no `role`</strong></a>
22402242
</p>
2241-
<p class="addition"><a>Naming Prohibited</a></p>
2243+
<p>
2244+
Otherwise, if the `label` is not associted with an element then <a><strong>any `role`</strong></a>
2245+
though <code><a href="#index-aria-generic">generic</a></code> SHOULD NOT be used.
2246+
</p>
2247+
<p><a>Naming Prohibited</a> if exposed as the `generic` role, or if exposed as another role which prohibits naming.</p>
22422248
<p>
22432249
Otherwise, <a data-cite="wai-aria-1.2#global_states">global `aria-*` attributes</a>.
22442250
</p>

0 commit comments

Comments
 (0)