Inconsistent allowed roles for "button" elements #395
Labels
Allowed roles
Pertaining to the allowed roles of HTML elements
Clarification needed
Revise or expand the information provided
Inconsistency
Inconsistency in allowances between similar HTML/ARIA features.
Milestone
This issue was filed while creating the PR to address #375.
input type=image
is a graphical version ofinput type=submit
.The latter, along with
input type=reset
does not allow for any role.The former, along with the
button
element andinput type=button
allow for specific roles.A
button
element defaults totype=submit
if thetype
attribute is missing. The spec does not distinguish the differentbutton
types though.Right now the spec is inconsistent with when these rules apply, so I propose the following:
Make
input type=submit
,input type=reset
,input type=button
,input type=image
, andbutton
all have the same allowances if not a descendant of a<form>
or associated with a<form>
. Otherwise, surface a warning that authors SHOULD usetype=button
or ensure that the implicit submit/reset functionality of the control has been suppressed.cc @stevefaulkner, @patrickhlauke
The text was updated successfully, but these errors were encountered: