ARIA in HTML - test case for role=combobox on button

last updated 15 January 2022

Tests:

Authors MAY use role=combobox on a button element, so long as other required attributes of the combobox role are also specified.

Expected result: This test fails because the button element has a role=combobox, but no other required attributes (aria-controls and aria-expanded).

Expected result: This test passes. The button element has a role=combobox, and has the required aria-controls and aria-expanded attributes.