I want to focus a object through keyboard's TAB key by adding <a>
link surrounding some other tags like <path>
, etc. Here is a reference link: SVG focusable attribute is not working
Using the method in the link above, I can successfully focus the object I want under Chrome, but it won't work under Firefox, can anybody tell why Firefox does not support this? Thanks
Asked
Active
Viewed 317 times
1

Community
- 1
- 1

Peter Chang
- 13
- 2
-
I had this exactly same problem before: it works on Chrome but not on Firefox (this was 2 months ago, I don't have information regarding new versions of Firefox). – Gerardo Furtado Sep 13 '16 at 03:03
-
Thanks Gerardo, it seems not supported on Firefox :( – Peter Chang Sep 13 '16 at 03:08
-
Let's wait for SVG 2... – Gerardo Furtado Sep 13 '16 at 03:11
-
Thanks Gerardo, it seems not supported on Firefox. BTW, did you implement a feature that we can focus a svg graphic object through keyboard's TAB key? Is there another way we can do this except by adding an tag inside the svg element? – Peter Chang Sep 13 '16 at 03:18
-
No, I didn't implement anything... Leave the question here, let's see if someone has any tip. – Gerardo Furtado Sep 13 '16 at 03:27
1 Answers
0
Tabindex and focus/blur support for SVG has just been implemented in Firefox and will appear in version 51.
You can see it in a Nightly right now if you want.

Robert Longson
- 118,664
- 26
- 252
- 242
-
Thanks Robert! I noticed your mention and saw the bug fix about it. I tried to use tabindex and set its value to 0 in my code, it works well under Chrome! But still not work under the Nightly Build of Firefox. I downloaded it for Mac. Is our fix still not merged in? – Peter Chang Sep 14 '16 at 14:23
-
There are a couple of bugs raised already about the implementation: https://bugzilla.mozilla.org/show_bug.cgi?id=1302340 and https://bugzilla.mozilla.org/show_bug.cgi?id=1302341 if you think you've found a different issue, raise it in bugzilla so it can be fixed before Firefox 51 appears. – Robert Longson Sep 14 '16 at 14:25
-
Thank you Robert, I've confirmed the latest Nightly build can work on the "tabindex" attribute. One more question, can the latest Firefox focus on a "" element? Does the link https://bugzilla.mozilla.org/show_bug.cgi?id=1302341 you mentioned means that we are going to support this? – Peter Chang Sep 19 '16 at 07:12
-
I've create a new bug on bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1303681. – Peter Chang Sep 19 '16 at 07:31