w3c / html-aria

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

datalist doesn't actually resepct/expose aria-* attributes #382

Closed scottaohara closed 2 years ago

scottaohara commented 2 years ago

Presently the datalist allows for global aria- attributes and any aria- attributes applicable to the listbox role.

In reality no aria-* attributes are respected on the datalist since its rendered ui is completely controlled by the browser.

The datalist attribute allowances should be updated to reflect this reality and simply indicate no ARIA attributes are allowed on this element.

carmacleod commented 2 years ago

Will it still have the implicit role of listbox?

scottaohara commented 2 years ago

yes. that's the implicit role for the datalist.