Bug 140024 - focus event listener on arbitrary SVGElement makes it focusable
Summary: focus event listener on arbitrary SVGElement makes it focusable
Status: RESOLVED DUPLICATE of bug 200997
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2015-01-01 06:56 PST by Rodney Rehm
Modified: 2022-07-15 22:27 PDT (History)
7 users (show)

See Also:

Test Case (2.25 KB, text/html)
2015-01-01 06:56 PST, Rodney Rehm
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rodney Rehm 2015-01-01 06:56:54 PST
Created attachment 243863 [details]
Test Case

Any SVG element (e.g. <text>, <svg>, …) is focusable once a focus event listener is attached to that element.

Steps to Reproduce:

1. addEventListener('focus', …) to any SVG element
2. focus() that element
3. observe document.activeElement changed to the SVG element

live test case: http://medialize.github.io/ally.js/tests/browser-bugs/blink-svg-focus-event.html

This failure also exists in Blink.
Comment 1 Rodney Rehm 2015-01-01 06:59:16 PST
Blink issue for reference: https://code.google.com/p/chromium/issues/detail?id=445798
Comment 2 Ahmad Saleem 2022-07-14 09:29:52 PDT
Just to update that based on Chrome (Blink) issue, this is subject to Web-spec discussion and the expected behavior is not clear in current spec.
Comment 3 Brent Fulgham 2022-07-15 17:04:42 PDT
Let's pull it in for tracking, but there may not be anything to do here.
Comment 4 Radar WebKit Bug Importer 2022-07-15 17:04:55 PDT
Comment 5 Ryosuke Niwa 2022-07-15 22:27:30 PDT
We fixed that: https://trac.webkit.org/changeset/248983

*** This bug has been marked as a duplicate of bug 200997 ***