otwcode/otwarchive — pull request #1624 by sarken (2014-04-21 23:06:26+00:00)
Title: 3967 Change ARIA roles on autocomplete

http://code.google.com/p/otwarchive/issues/detail?id=3967

The ARIA roles on the autocomplete were confusing JAWS. It was set up like this:

```

container for the whole autocomplete thing

first tag previously added with the autocomplete

second tag previously added with the autocomplete

container for the input to add tags and its children
input for typing tag names

containing the list of suggested tags

first suggested tag

second suggested tag
```

`input role="combobox"` and the second `

` were right (the [combobox spec](http://www.w3.org/TR/wai-aria/roles#combobox) has an example of an autocomplete), but the listbox's children are now `role="option"` to comply with the [listbox spec](http://www.w3.org/TR/wai-aria/roles#listbox), which says children of listbox should be option (menuitem is for menu's children).

The first listbox role is what was reportedly causing problems, so that and the menuitem roles have been removed. I'm not actually sure how that's going to affect removing tags with JAWS, but before we can worry about that, we need to get *adding* tags working.