w3c / html-aria

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

Clarification regarding input type=image explicit roles #504

Closed giacomo-petri closed 4 months ago

giacomo-petri commented 5 months ago

According to ARIA in HTML specifications, the input type=image implicitly assumes the role of a button. In contrast to similar situations, the use of "button" is permitted without any specific notation. However, for other roles, a specific note suggests that specifying the "implicit" role as explicit role is possible but not recommended.

Therefore, similar to other roles, the list should include: "checkbox, gridcell, link, menuitem, menuitemcheckbox, menuitemradio, option, radio, separator, slider, switch, tab, or treeitem. (button is also allowed, but NOT RECOMMENDED.)"

Is my understanding correct, or am I overlooking something?