Skip to content

Commit 1667857

Browse files
scottaoharapkra
authored andcommitted
Allow aria-valuetext for use with combobox role
closes #2382 and is related to #2344 / #2369 This PR adds aria-valuetext as a supported property for the combobox role. the `aria-valuetext` definition is slightly updated to indicate that the attribute can be used on other supported roles. I'm not sure if we want to do any further updates to that section in this PR - or if that really should be handled in a larger PR to resolve #711
1 parent 40f1062 commit 1667857

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -2843,6 +2843,7 @@ <h2>Definition of Roles</h2>
28432843
following:
28442844
</p>
28452845
<ul>
2846+
<li>If the <code>aria-valuetext</code> attribute is specified on the element with the <code>combobox</code> role, the value of the attribute is the value of the <code>combobox</code> element.</li>
28462847
<li>
28472848
If the <code>combobox</code> element is a host language element that provides a value, such as an HTML <code>input</code> element, the value of the combobox is the value of that
28482849
element.
@@ -2949,6 +2950,7 @@ <h2>Definition of Roles</h2>
29492950
<li><sref>aria-invalid</sref></li>
29502951
<li><pref>aria-readonly</pref></li>
29512952
<li><pref>aria-required</pref></li>
2953+
<li><pref>aria-valuetext</pref></li>
29522954
</ul>
29532955
</td>
29542956
</tr>
@@ -16012,7 +16014,7 @@ <h2>Definitions of States and Properties (all aria-* attributes)</h2>
1601216014
<div class="property" id="aria-valuetext">
1601316015
<pdef>aria-valuetext</pdef>
1601416016
<div class="property-description">
16015-
<p><a>Defines</a> the human readable text alternative of <pref>aria-valuenow</pref> for a range <a>widget</a>.</p>
16017+
<p><a>Defines</a> the human readable text alternative of <pref>aria-valuenow</pref> for a range <a>widget</a>, or other widget roles which support the attribute.</p>
1601616018
<p>This property is used, for example, on a range widget such as a slider or progress bar.</p>
1601716019
<p>
1601816020
If the <pref>aria-valuetext</pref> attribute is set, authors SHOULD also set the <pref>aria-valuenow</pref> attribute, unless that value is unknown (for example, on an indeterminate

0 commit comments

Comments
 (0)