Skip to content

Commit 5aa1657

Browse files
Add selectedcontent element and allowances for 'button' part of select (#528)
* Add <selectedoption> element * updates selectedcontent and button element * update selectedcontent role allowances account for misuse of element - where the element will just be a generic element and thus is name prohibited, but any role/attributes can be used to modify/fix the errant element, as needed. * changelog update --------- Co-authored-by: Scott O'Hara <[email protected]>
1 parent 7a5aa81 commit 5aa1657

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

index.html

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
the following substantive additions and/or corrections have been proposed:
6565
</p>
6666
<ul>
67+
<li>
68+
<a href="https://github.com/w3c/html-aria/pull/528">23 July 2025 - Addition:</a>
69+
Add the <a href="#el-selectedcontent">`selectedcontent`</a> element and provide updated
70+
allowances for the <a href="#el-button">`button`</a> element when it is used in the context
71+
of a customized `select` element.
72+
</li>
6773
<li>
6874
<a href="https://github.com/w3c/html-aria/pull/550">23 July 2025 - Correction:</a>
6975
Clarify that the <a href="#el-html">`html`</a> element is a `generic` element, and that
@@ -893,7 +899,8 @@ <h2 id="docconformance">
893899
[^button^]
894900
</th>
895901
<td>
896-
<code>role=<a href="#index-aria-button">button</a></code>
902+
<p><code>role=<a href="#index-aria-button">button</a></code></p>
903+
<p>If the `button` is the first child of a `select` element, the element is `inert`.</p>
897904
</td>
898905
<td>
899906
<p>
@@ -919,6 +926,9 @@ <h2 id="docconformance">
919926
<a data-cite="wai-aria-1.2#global_states">Global `aria-*` attributes</a>
920927
and any `aria-*` attributes applicable to the allowed roles.
921928
</p>
929+
<hr>
930+
<p>If the `button` is the first child of a `select` element:
931+
<strong class="nosupport"><a>No `role`</a> or `aria-*` attributes</strong></p>
922932
</td>
923933
</tr>
924934
<tr>
@@ -2954,6 +2964,28 @@ <h2 id="docconformance">
29542964
</p>
29552965
</td>
29562966
</tr>
2967+
<tr>
2968+
<th id="el-selectedcontent" tabindex="-1">
2969+
[^selectedcontent^]
2970+
</th>
2971+
<td>
2972+
<code>role=<a href="#index-aria-generic">generic</a></code>
2973+
</td>
2974+
<td>
2975+
<p>
2976+
If used as a valid descendant of a `select` element: <strong class="nosupport"><a>no `role`</a> or `aria-*` attributes</strong>
2977+
</p>
2978+
<p>
2979+
Otherwise, <a><strong>any `role`</strong></a> if the element is used outside of its intended context as a child of the `button` part of a customizable `select` element,
2980+
though <code><a href="#index-aria-generic">generic</a></code> is NOT RECOMMENDED.
2981+
</p>
2982+
<p><a>Naming Prohibited</a></p>
2983+
<p>
2984+
Otherwise, <a data-cite="wai-aria-1.2#global_states">global `aria-*` attributes</a>
2985+
and any `aria-*` attributes applicable to the allowed roles.
2986+
</p>
2987+
</td>
2988+
</tr>
29572989
<tr>
29582990
<th id="el-slot" tabindex="-1">
29592991
[^slot^]

0 commit comments

Comments
 (0)