<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>40545</bug_id>
          
          <creation_ts>2010-06-13 09:25:33 -0700</creation_ts>
          <short_desc>focusin, focusout, activate not implemented in SVG</short_desc>
          <delta_ts>2011-06-28 09:11:50 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>SVG</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HasReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="jay">jay</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>krit</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>237570</commentid>
    <comment_count>0</comment_count>
    <who name="jay">jay</who>
    <bug_when>2010-06-13 09:25:33 -0700</bug_when>
    <thetext>http://www.w3.org/TR/SVG/interact.html#SVGEvents

focusout: Occurs when an element loses focus, such as when a &apos;text&apos; 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&apos;s own trouble getting this one to function at all.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237572</commentid>
    <comment_count>1</comment_count>
      <attachid>58595</attachid>
    <who name="jay">jay</who>
    <bug_when>2010-06-13 09:37:58 -0700</bug_when>
    <thetext>Created attachment 58595
focusout demo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237739</commentid>
    <comment_count>2</comment_count>
      <attachid>58625</attachid>
    <who name="jay">jay</who>
    <bug_when>2010-06-14 01:02:30 -0700</bug_when>
    <thetext>Created attachment 58625
focusout simplified testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237740</commentid>
    <comment_count>3</comment_count>
    <who name="jay">jay</who>
    <bug_when>2010-06-14 01:03:22 -0700</bug_when>
    <thetext>very much simplified testcase, wfm Opera, broken Safari</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237744</commentid>
    <comment_count>4</comment_count>
    <who name="jay">jay</who>
    <bug_when>2010-06-14 01:16:16 -0700</bug_when>
    <thetext>http://www.w3.org/Graphics/SVG/Test/20061213/svggen/script-handle-02-b.svg
is the definitive test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237746</commentid>
    <comment_count>5</comment_count>
    <who name="jay">jay</who>
    <bug_when>2010-06-14 01:31:21 -0700</bug_when>
    <thetext>url above is for script access using onfocusout etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>237975</commentid>
    <comment_count>6</comment_count>
    <who name="jay">jay</who>
    <bug_when>2010-06-14 12:13:03 -0700</bug_when>
    <thetext>in August 2000 Accessibility Features of SVG  states:
&quot;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. &quot;
http://www.w3.org/TR/SVG-access/

Opera implementation allows either focus or focusin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>239763</commentid>
    <comment_count>7</comment_count>
    <who name="jay">jay</who>
    <bug_when>2010-06-17 22:30:32 -0700</bug_when>
    <thetext>moving to DOM as whilst the effect is SVG the cause is DOM</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>249002</commentid>
    <comment_count>8</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2010-07-09 07:27:02 -0700</bug_when>
    <thetext>Changed component to SVG, so it shows up in my all-svg-bugs search.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>58595</attachid>
            <date>2010-06-13 09:37:58 -0700</date>
            <delta_ts>2010-06-14 01:02:30 -0700</delta_ts>
            <desc>focusout demo</desc>
            <filename>focusout.svg</filename>
            <type>image/svg+xml</type>
            <size>1419</size>
            <attacher name="jay">jay</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxz
dmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjIiIGJhc2VQ
cm9maWxlPSJ0aW55IgogICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGlu
ayIKPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiIGlkPSJjc3MiPjwhW0NEQVRBWwp0ZXh0IHtmb250
LXNpemU6MWVtOyBmaWxsOiMzMzM7fQoKLmlucHV0VGV4dCB7Y3Vyc29yOnRleHQ7IH0KCmEgeyBm
aWxsOiAjZWZlfQoKYTpmb2N1cyB7ZmlsbDogI2ZmZn0KCgoKXV0+PC9zdHlsZT4KCgoJPHRpdGxl
PmNoYXQgdGV4dCBpbnB1dDwvdGl0bGU+Cgo8YSB4bGluazpocmVmPSIiPjxyZWN0IHg9IjEwIiB5
PSI5IiAgd2lkdGg9IjE4NSIgaGVpZ2h0PSIxOCIgLz48L2E+CjxyZWN0IGRpc3BsYXk9Im5vbmUi
ICAgeD0iNzUiIHk9IjEyIiB3aWR0aD0iMSIgaGVpZ2h0PSIxMiI+CjxhbmltYXRlIGF0dHJpYnV0
ZU5hbWU9InZpc2liaWxpdHkiIGZyb209ImhpZGRlbiIgdG89InZpc2libGUi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IiBwb2ludGVyLWV2ZW50cz0idmlzaWJsZSIvPgo8
dGV4dCB4PSIyODMiIHk9IjI4NyIgPmZvY3Vzb3V0PC90ZXh0PgoKCgoKCjwvc3ZnPgoK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>58625</attachid>
            <date>2010-06-14 01:02:30 -0700</date>
            <delta_ts>2010-06-14 01:02:30 -0700</delta_ts>
            <desc>focusout simplified testcase</desc>
            <filename>focusout-reduced.svg</filename>
            <type>image/svg+xml</type>
            <size>791</size>
            <attacher name="jay">jay</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxz
dmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2ZXJzaW9uPSIxLjIiIGJhc2VQ
cm9maWxlPSJ0aW55IgogICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGlu
ayIKPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiIGlkPSJjc3MiPjwhW0NEQVRBWwp0ZXh0IHtmb250
LXNpemU6MWVtOyBmaWxsOiMzMzM7fQoKLmlucHV0VGV4dCB7Y3Vyc29yOnRleHQ7ICBmaWxsOiMz
ZTM7fQoKCl1dPjwvc3R5bGU+CgoKCTx0aXRsZT5mb2N1c291dCB0ZXN0OiBjbGljayBvbiBvbmUg
Ym94LCB0aGVuIHRoZSBvdGhlciwgdGhlIGZpcnN0IHNob3VsZCBjaGFuZ2UgYmFjaywgPC90aXRs
ZT4KCjxyZWN0IHg9IjEyIiB5PSI5IiBpZD0iY2hhdCIgd2lkdGg9IjE4NSIgaGVpZ2h0PSIyMiIg
IHJ4PSI0IiByeT0iNCIgY2xhc3M9ImlucHV0VGV4dCIgcG9pbnRlci1ldmVudHM9InZpc2libGUi
Pgo8c2V0IGF0dHJpYnV0ZU5hbWU9ImZ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