HTML role attribute for voice control test

This page tests how the voice control software uses the role attribute.

To pass:

test 1: just a button role

For this test, just a div with a button role was used. It is not in the tab order and does not have a click event, as these aspects could, in theory, independently cause voice control software to consider the element as interactive.

target 1

test 2: button role with click event

For this test, the div has a button role and a click event. The click event is present for VC that supports activating by role, since without the click event, it may not be obvious if the command was successful.

target 2