w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
181 stars 49 forks source link

Consider allowing role=combobox on some more text inputs #397

Open scottaohara opened 2 years ago

scottaohara commented 2 years ago

Right now input type=search, tel, email and url all do not allow any role to be specified. Save for type=search, these are all generally announced as standard 'edit' fields with their accessible names and on-screen keyboards being the primary differentiators between them.

These fields can be given the list attribute to turn them into native comboboxes, but due to the limitations of styling of the native listbox that appears in these cases, authors tend to shy away from them.

I submit that these fields should allow for the combobox role as requiring authors to change the type to text and then having to re-implement entry validation / not getting the benefit of the on screen keyboard modifications seems unnecessary.