Skip to content

Commit 7bfb796

Browse files
Editorial: Clarification of Combobox Role and aria-haspopup Attributes (#2134)
Closes #2132 The current specification text has two separate paragraphs describing the aria-haspopup attribute value requirements on a combobox—which are essentially the same. These have a conflict on the MUST use of aria-haspopup that pops up a Listbox. The proposed amendment aims to merge these paragraphs to enhance clarity, ensuring a clear understanding between the role combobox and the aria-haspopup values. Co-authored-by: Scott O'Hara <[email protected]>
1 parent 77302e6 commit 7bfb796

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

index.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2060,12 +2060,7 @@ <h2>Definition of Roles</h2>
20602060
Authors MUST set <sref>aria-expanded</sref> to <code>true</code> on an element with role <code>combobox</code> when it is expanded and <code>false</code> when it is collapsed.
20612061
</p>
20622062
<p>
2063-
Authors MUST ensure the popup element associated with a <code>combobox</code> has a role of <rref>listbox</rref>, <rref>tree</rref>, <rref>grid</rref>, or <rref>dialog</rref>.
2064-
When the popup is displayed, authors MUST set <pref>aria-controls</pref> on a <code>combobox</code> element to a value that refers to the <code>combobox</code> popup element.
2065-
</p>
2066-
<p>
2067-
Elements with the role <code>combobox</code> have an implicit <pref>aria-haspopup</pref> value of <code>listbox</code>.
2068-
If the <code>combobox</code> popup element has a role other than <rref>listbox</rref>, authors MUST specify a value for <pref>aria-haspopup</pref> that corresponds to the role of its popup.
2063+
Elements with the role <code>combobox</code> have an implicit <pref>aria-haspopup</pref> value of <code>listbox</code>. If the <code>combobox</code> popup element has a role other than <rref>listbox</rref>, authors MUST specify an <pref>aria-haspopup</pref> value of <rref>tree</rref>, <rref>grid</rref>, or <rref>dialog</rref> that corresponds to the role of its popup.
20692064
</p>
20702065
<p>
20712066
If the user interface includes an additional icon that allows the visibility of the popup to be controlled via pointer and touch events, authors SHOULD ensure that element has role <rref>button</rref>, that it is focusable but not included in the page <kbd>Tab</kbd> sequence, and that it is not a descendant of the element with role <code>combobox</code>.

0 commit comments

Comments
 (0)