<?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>148477</bug_id>
          
          <creation_ts>2015-08-26 08:21:03 -0700</creation_ts>
          <short_desc>[Regression] Inline SVG xlink:href – differing behaviour with #name and #id</short_desc>
          <delta_ts>2021-03-22 12:34:18 -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 8</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.10</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>223161</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=91520</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=223161</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Graham Bell">graham.6311</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>peter</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1120935</commentid>
    <comment_count>0</comment_count>
      <attachid>259951</attachid>
    <who name="Graham Bell">graham.6311</who>
    <bug_when>2015-08-26 08:21:03 -0700</bug_when>
    <thetext>Created attachment 259951
Demonstration of differing behaviour with #id and #name

&lt;a xlink:href=&quot;#…&quot;&gt; 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 &lt;a&gt; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1354237</commentid>
    <comment_count>1</comment_count>
    <who name="Graham Bell">graham.6311</who>
    <bug_when>2017-09-28 12:36:43 -0700</bug_when>
    <thetext>See also https://bugs.chromium.org/p/chromium/issues/detail?id=296071 in Chromium from 2013 – same or similar</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1487333</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2018-12-12 14:27:43 -0800</bug_when>
    <thetext>*** Bug 192623 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1487583</commentid>
    <comment_count>3</comment_count>
    <who name="Peter Krautzberger">peter</who>
    <bug_when>2018-12-13 08:00:45 -0800</bug_when>
    <thetext>FWIW, the Blink issue was resolved in 2014 and the one-line-fix appears to still be applicable to WebKit when comparing https://src.chromium.org/viewvc/blink/trunk/Source/core/svg/SVGAElement.cpp?r1=172722&amp;r2=172721&amp;pathrev=172722 and  https://svn.webkit.org/repository/webkit/trunk/Source/WebCore/svg/SVGAElement.cpp.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742377</commentid>
    <comment_count>4</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2021-03-22 12:34:18 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 223161 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>259951</attachid>
            <date>2015-08-26 08:21:03 -0700</date>
            <delta_ts>2015-08-26 08:21:03 -0700</delta_ts>
            <desc>Demonstration of differing behaviour with #id and #name</desc>
            <filename>SVG xlink href test.html</filename>
            <type>text/html</type>
            <size>1882</size>
            <attacher name="Graham Bell">graham.6311</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgoJPGhlYWQ+CgkJPG1ldGEgY2hhcnNldD0idXRmLTgiPgoJ
CTx0aXRsZT5bUmVncmVzc2lvbl0gSW5saW5lIFNWRyB4bGluazpocmVmPC90aXRsZT4KCTwvaGVh
ZD4KCTxib2R5PgoJCTxoMz5bUmVncmVzc2lvbl0gSW5saW5lIFNWRyB4bGluazpocmVmIOKAkyBk
aWZmZXJpbmcgYmVoYXZpb3VyIHdpdGggI25hbWUgYW5kICNpZDwvaDM+CgoJCTxwcmU+Jmx0O2Eg
eGxpbms6aHJlZj0iI3RhcmdldCI+CsKgwqAmbHQ7cmVjdCB4PSIxMCIgeT0iMTAiIGhlaWdodD0i
MzAiIHdpZHRoPSIzMCIgLz4KJmx0Oy9hPjwvcHJlPgoKCQk8cD48Y29kZT4mbHQ7YSB4bGluazpo
cmVmPSIj4oCmIj48L2NvZGU+IHdpdGhpbiBpbmxpbmUgU1ZHIGxpbmtzIHRvIGEgbG9jYWwgSVJJ
IGZvciBhIHRhcmdldCByZXNvdXJjZSB3aXRoaW4gdGhlIHNhbWUgZG9jdW1lbnQuIEluIFNhZmFy
aSA4LjAuOCBhbmQgbmlnaGx5IFdlYmtpdCBidWlsZHMsIHRoaXMgd29ya3Mgd2hlbiB0aGUgSVJJ
IHVzZXMgdGhlIDxpPm5hbWU8L2k+IGF0dHJpYnV0ZSBvZiB0aGUgdGFyZ2V0IGFuY2hvciDigJMg
YnV0IHRoZSA8aT5uYW1lPC9pPiBhdHRyaWJ1dGUgaXMgZGVwcmVjYXRlZCBpbiBIVE1MNSBpbiBm
YXZvdXIgb2YgdXNpbmcgZWxlbWVudCBJRHMuIEhvd2V2ZXIsIHhsaW5rOmhyZWYgZG9lcyBub3Qg
bGluayBzdWNjZX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