New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anchor tag with role of button but no href is not recognized as a button in Internet Explorer #2750
Comments
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 2 by javis on 2013-04-01 14:23 We were concerned around the inconsistent behaviour when the user hits the "b" button to navigate the buttons. We cannot seem to determine an effective way to deal with the inconsistency. Thanks, |
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. :) |
Comment 5 by jteh on 2013-04-09 23:45 |
Comment 6 by mdcurran on 2013-05-08 03:33 |
Reported by javis on 2012-10-26 14:26
This is a button This is a button This is a buttonThe following markup will only recognize the anchor tags with a href attribute as buttons in Internet Explorer. In Firefox they are all recognized as buttons.
The text was updated successfully, but these errors were encountered: