Bug 230304 - foreignobject or object Tag in stacked svg not registering click
Summary: foreignobject or object Tag in stacked svg not registering click
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: Safari 14
Hardware: All Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-15 05:07 PDT by Max
Modified: 2021-09-20 09:24 PDT (History)
6 users (show)

See Also:


Attachments
The simplified issue (1.38 KB, application/x-zip-compressed)
2021-09-15 05:07 PDT, Max
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max 2021-09-15 05:07:52 PDT
Created attachment 438239 [details]
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.
Comment 1 Kevin Neal 2021-09-20 09:24:01 PDT
Thank you for filing. I was able to reproduce the bug on latest version of Safari. The appropriate engineers have been notified.
Comment 2 Radar WebKit Bug Importer 2021-09-20 09:24:16 PDT
<rdar://problem/83309441>