Ticket #4537 (closed defect: fixed)
FilteringSelect and ComboBox: screen readers not annoucing "n of m" information
| Reported by: | ptbrunet | Owned by: | becky |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2 |
| Component: | Dijit | Version: | 0.9 |
| Severity: | normal | Keywords: | |
| Cc: | brunet@…, gibsonb@… |
Description (last modified by becky) (diff)
Go to http://archive.dojotoolkit.org/nightly/dojotoolkit/dijit/tests/form/test_FilteringSelect.html and tab down to a FilteringSelect widget. When the widget gets focus the screen reader should announce the n of m information, e.g. "2 of 50" if the value of the combo box is Alaska and the combo box has 50 possible values. The same behavior would be expected of a ComboBox.
If you have a screen reader you can see this behavior by going to the combo box in the Start, Run dialog.
The combo box in the Start, Run dialog conveys this information to the screen reader because of its MSAA hierarchical structure, i.e. the combo box has three children: the text box, the list, and the push button. When focus first lands on the text box of the combo box the screen reader senses that it's in a combo box because there is a parent with role combobox. It then can analyze the list (sibling of the text box) and know the size of the list from list's child count and which item is selected by iterating through the list items until it finds which list item has a state of selected.
In order for dojo to let the screen reader provide this valuable information to the screen reader the DOM will have to be structured such that a text object gets focus and it has a parent of wairole combobox and a sibling of wairole list (with children of wairole listitem).
Note: This ticket was originally about a blank item at the start of the list. That issue is now covered by #4923.