w3c / html-aria

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

input[type=file] default role be button? #421

Closed jongund closed 2 years ago

jongund commented 2 years ago

It seems browsers render a button by default for input[type=file], shouldn't the default role be button?

scottaohara commented 2 years ago

this wasn't always the case. For instance, IE11 used to render a button with a text field.

Even now, it's not entirely accurate to say this is just a role=button, as while the implementations have become more unified there is generally still a containing element that then houses a button and then a text leaf of the current upload status.

I'm going to close this issue, but create a new one in HTML AAM as the mappings over there should probably be updated and - judging by the chromium implementation - there are probably things that need to be fixed in that browser.