From 9c5b71a965568249cd93f0737d25ce6c90f9191e Mon Sep 17 00:00:00 2001 From: Melanie Richards Date: Wed, 10 Apr 2019 18:32:13 -0700 Subject: [PATCH 1/2] Remove default value for aria-expanded from combobox role --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index dfe22b6bf..bb6a18e87 100644 --- a/index.html +++ b/index.html @@ -1815,7 +1815,6 @@

Definition of Roles

Implicit Value for Role: - Default for aria-expanded is false.
Default for aria-haspopup is listbox.
From 8cec817c1a3216c8320a86561aba5344ebb2cd04 Mon Sep 17 00:00:00 2001 From: Melanie Richards Date: Fri, 19 Apr 2019 11:47:39 -0700 Subject: [PATCH 2/2] Update combobox role prose to better reflect removal of default aria-expanded value --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index bb6a18e87..08bfec6af 100644 --- a/index.html +++ b/index.html @@ -1702,7 +1702,7 @@

Definition of Roles

A composite widget containing a single-line textbox and another element, such as a listbox or grid, that can dynamically pop up to help the user set the value of the textbox.

Authors MUST ensure an element with role combobox contains or owns a text input element with role textbox or searchbox and that the text input has aria-multiline set to false. If the combobox provides autocompletion behavior for the text input as described in aria-autocomplete, authors MUST set aria-autocomplete on the textbox element to the value that corresponds to the provided behavior.

-

Typically, the default state of a combobox is collapsed. In the collapsed state, only the textbox element of a combobox is visible. A combobox is said to be expanded when both the textbox and a secondary element that serves as its popup are visible. Authors MUST set aria-expanded to true on an element with role combobox when it is expanded and false when it is collapsed. Elements with the role combobox have an implicit aria-expanded value of false.

+

Typically, the initial state of a combobox is collapsed. In the collapsed state, only the textbox element of a combobox is visible. A combobox is said to be expanded when both the textbox and a secondary element that serves as its popup are visible. Authors MUST set aria-expanded to true on an element with role combobox when it is expanded and false when it is collapsed.

When a combobox is expanded, authors MUST ensure it contains or owns an element that has a role of listbox, tree, grid, or dialog. This element is the combobox popup. When the combobox is expanded, authors MUST set aria-controls on the textbox element to a value that refers to the combobox popup element.

Elements with the role combobox have an implicit aria-haspopup value of listbox. If the combobox popup element has a role other than listbox, authors MUST specify a value for aria-haspopup that corresponds to the type of its popup.

To be keyboard accessible, authors SHOULD manage focus of descendants for all instances of this role, as described in Managing Focus. When a combobox receives focus, authors SHOULD ensure focus is placed on the textbox element.