[Webkit-unassigned] [Bug 230304] New: foreignobject or object Tag in stacked svg not registering click

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 15 05:07:52 PDT 2021


            Bug ID: 230304
           Summary: foreignobject or object Tag in stacked svg not
                    registering click
           Product: WebKit
           Version: Safari 14
          Hardware: All
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: SVG
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: maxlennartborm at gmail.com
                CC: sabouhallawa at apple.com, zimmermann at kde.org

Created attachment 438239

  --> https://bugs.webkit.org/attachment.cgi?id=438239&action=review

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.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210915/9216a9aa/attachment.htm>

More information about the webkit-unassigned mailing list