RESOLVED DUPLICATE of bug 223161 148477
[Regression] Inline SVG xlink:href – differing behaviour with #name and #id
https://bugs.webkit.org/show_bug.cgi?id=148477
Summary [Regression] Inline SVG xlink:href – differing behaviour with #name and #id
Graham Bell
Reported 2015-08-26 08:21:03 PDT
Created attachment 259951 [details] Demonstration of differing behaviour with #id and #name <a xlink:href="#…"> within inline SVG links to a local IRI for a target resource within the same document. In Safari 8.0.8 and nightly builds up to at least Webkit r.188939, this works when the IRI uses the name attribute of the target anchor – but the name attribute is deprecated in HTML5 in favour of using element IDs. However, xlink:href does not link successfully when the IRI uses the id attribute of the target resource (whether it is an <a> anchor or an ordinary element). In contrast, Chrome, Firefox and earlier versions of Safari (eg 5.1) work as expected with IDs. Possibly similar to Webkit Bugzilla 91520, but does not require target resource to be external.
Attachments
Demonstration of differing behaviour with #id and #name (1.84 KB, text/html)
2015-08-26 08:21 PDT, Graham Bell
no flags
Graham Bell
Comment 1 2017-09-28 12:36:43 PDT
See also https://bugs.chromium.org/p/chromium/issues/detail?id=296071 in Chromium from 2013 – same or similar
Alexey Proskuryakov
Comment 2 2018-12-12 14:27:43 PST
*** Bug 192623 has been marked as a duplicate of this bug. ***
Peter Krautzberger
Comment 3 2018-12-13 08:00:45 PST
Said Abou-Hallawa
Comment 4 2021-03-22 12:34:18 PDT
*** This bug has been marked as a duplicate of bug 223161 ***
Note You need to log in before you can comment on or make changes to this bug.