<?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>230304</bug_id>
          
          <creation_ts>2021-09-15 05:07:52 -0700</creation_ts>
          <short_desc>foreignobject or object Tag in stacked svg not registering click</short_desc>
          <delta_ts>2021-09-20 09:24:16 -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>Safari 14</version>
          <rep_platform>All</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Max">maxlennartborm</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>kevin_neal</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1793670</commentid>
    <comment_count>0</comment_count>
      <attachid>438239</attachid>
    <who name="Max">maxlennartborm</who>
    <bug_when>2021-09-15 05:07:52 -0700</bug_when>
    <thetext>Created attachment 438239
The simplified issue

I have a svg embedded in another using a object tag that is contained in a foreignobject as per recommendation by mdn to retain script execution.
The inner eventlistener (green in second.svg) doesnt do anything in webkit while chrome and firefox have no problem with this.
The outer eventlistener (pink in main.svg) works though.
Because I am able to call the alert from main.svg even when the website is embedded into HTML via object tag, I concluded that the object tag cant be responsible.
My guess is that it is the foreignObject tag.

I have uploaded the issue to github pages to spare you the download of the attachment: https://scopeofaperture.github.io/safarisvgissue/

If this is expected behaviour please tell me and if you have, please point me to documentation mentioning this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1795110</commentid>
    <comment_count>1</comment_count>
    <who name="Kevin Neal">kevin_neal</who>
    <bug_when>2021-09-20 09:24:01 -0700</bug_when>
    <thetext>Thank you for filing. I was able to reproduce the bug on latest version of Safari. The appropriate engineers have been notified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1795111</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-09-20 09:24:16 -0700</bug_when>
    <thetext>&lt;rdar://problem/83309441&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>438239</attachid>
            <date>2021-09-15 05:07:52 -0700</date>
            <delta_ts>2021-09-15 05:07:52 -0700</delta_ts>
            <desc>The simplified issue</desc>
            <filename>issue.zip</filename>
            <type>application/x-zip-compressed</type>
            <size>1410</size>
            <attacher name="Max">maxlennartborm</attacher>
            
              <data encoding="base64">UEsDBBQAAAAIANyMJlOEn3Hk0wAAADsBAAAKAAAAaW5kZXguaHRtbFWQTW/CMAyG75P2HzKfFwq3
HZJKEzBpJziAtB3dxGo95aOjpoh/v1DYNHyxbL/PK9vmabVZ7j63a9VJDPXjg7lkFTC1FijB1CH0
JasSJpKgch0eBhIL+92bfoG7WSfSa/o+8mjhQ+9f9TLHHoWbQKBcTkKpgO9rS76lezRhJAsj06nP
B/mnPrGXznoa2ZGeimfFiYUx6MFhILuYzf+8hCVQvcruGAttqmtd7qhuh5gm+/OvOjdf5ER5FLQQ
kdNsGFtQcu7LLlCb6iqY+BtXjC6/+gFQSwMEFAAAAAgAKWUvU0HWCn7tAQAAngMAAAgAAABtYWlu
LnN2Z41S247aMBR85yssV5VALbZz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