Bug 140024

Summary: focus event listener on arbitrary SVGElement makes it focusable
Product: WebKit Reporter: Rodney Rehm <mail>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, mmaxfield, rniwa, webkit-bug-importer, zimmermann
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Test Case none

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
<rdar://problem/97101649>
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 ***