Join GitHub today
Anchor tag with role of button but no href is not recognized as a button in Internet Explorer #2750
Comment 1 by jteh on 2012-10-29 00:28
The one point that is different is that in Firefox, we don't require buttons to be focusable to be reached with the "b" quick navigation key, whereas in IE, we do, which is obviously inconsistent. (An "a" tag without an href is not focusable without a tabindex.) In general, buttons should be focusable, so I'm not sure which "fix" we will make here, but obviously it should be consistent.
Comment 3 by nmatthews on 2013-04-09 15:14
I've set up a jsfiddle (for support with IE9 or greater) here: http://jsfiddle.net/2uDCt/1/
The fourth button cannot be accessed with the B key.
Comment 4 by jteh (in reply to comment 3) on 2013-04-09 23:45
Thanks for reporting. This is a bug.
Technical: The problem is due to the code around line 932 of the mshtml vbuf backend (51f51d9:
This doesn't take into account that the role might be overridden with ARIA.
Note that if we don't require buttons to be focusable, we don't need to bother fixing this part. :)