Bug 40545 - focusin, focusout, activate not implemented in SVG
Summary: focusin, focusout, activate not implemented in SVG
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2010-06-13 09:25 PDT by jay
Modified: 2011-06-28 09:11 PDT (History)
2 users (show)

See Also:


Attachments
focusout demo (1.39 KB, image/svg+xml)
2010-06-13 09:37 PDT, jay
no flags Details
focusout simplified testcase (791 bytes, image/svg+xml)
2010-06-14 01:02 PDT, jay
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description jay 2010-06-13 09:25:33 PDT
http://www.w3.org/TR/SVG/interact.html#SVGEvents

focusout: Occurs when an element loses focus, such as when a 'text' becomes unselected.

it is not clear to me how this is intended to be used, however please find a testcase attached

in Safari and Opera, clicking on a green rectangle starts its own flashing cursor

however only in Opera does one animation stop when the other starts.

please accept my apologies for the code, an even simpler testcase would be appreciated.
I had the devil's own trouble getting this one to function at all.
Comment 1 jay 2010-06-13 09:37:58 PDT
Created attachment 58595 [details]
focusout demo
Comment 2 jay 2010-06-14 01:02:30 PDT
Created attachment 58625 [details]
focusout simplified testcase
Comment 3 jay 2010-06-14 01:03:22 PDT
very much simplified testcase, wfm Opera, broken Safari
Comment 5 jay 2010-06-14 01:31:21 PDT
url above is for script access using onfocusout etc.
Comment 6 jay 2010-06-14 12:13:03 PDT
in August 2000 Accessibility Features of SVG  states:
"Good authoring practice will normally use the focusin, focusout and activate events rather than the device specific events for gaining and losing the focus on an element or activating the element. "
http://www.w3.org/TR/SVG-access/

Opera implementation allows either focus or focusin
Comment 7 jay 2010-06-17 22:30:32 PDT
moving to DOM as whilst the effect is SVG the cause is DOM
Comment 8 Nikolas Zimmermann 2010-07-09 07:27:02 PDT
Changed component to SVG, so it shows up in my all-svg-bugs search.