Bug 192623 - Links in SVG are broken (no navigation)
Summary: Links in SVG are broken (no navigation)
Status: RESOLVED DUPLICATE of bug 148477
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: Safari 12
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-12 06:58 PST by Peter Krautzberger
Modified: 2018-12-12 14:37 PST (History)
4 users (show)

See Also:


Attachments
minimal example of two svgs with links (869 bytes, text/html)
2018-12-12 06:58 PST, Peter Krautzberger
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Krautzberger 2018-12-12 06:58:33 PST
Created attachment 357122 [details]
minimal example of two svgs with links

In Safari 12.1, activating <a>'s inside SVG content no longer causes navigation to the target.

Both iOS and MacOS are affected; on MacOS using "open link in new tab" from the context menu still works.
Comment 1 Alexey Proskuryakov 2018-12-12 13:06:19 PST
Can you clarify what the expected behavior is? Are you observing a change in behavior from some earlier version?

When I click on the first circle in any build of Safari that I tried, nothing happens. When I click on the second one, the page navigates to developer.mozilla.com.
Comment 2 Peter Krautzberger 2018-12-12 13:37:20 PST
> Can you clarify what the expected behavior is? Are you observing a change in behavior from some earlier version?

Thanks for following up and my apologies - I should've checked the sample I uploaded better (rather than expecting this to work as in my original sample). 


Expected: The first (relative) link should change the URL (to add #target) and thus trigger the CSS (add a red border around the second heading). 

Actual: the URL does not change. 

Affected: Safari 12.1 (both iOS and MacOS), WebKitGTK+ 2.22.4

As you kindly pointed out, the external link does work correctly (it actually didn't for me originally because of an error on my part - sorry for the sloppiness).

Thanks again for your help.
Comment 3 Alexey Proskuryakov 2018-12-12 14:27:43 PST
Thank you. I can reproduce the issue in Safari 12.0.2 (the latest shipping version at this time).

Looks like the same issue as bug 148477.

*** This bug has been marked as a duplicate of bug 148477 ***
Comment 4 Peter Krautzberger 2018-12-12 14:37:55 PST
Ah, I had not found that issue - sorry!