<?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>81122</bug_id>
          
          <creation_ts>2012-03-14 09:10:22 -0700</creation_ts>
          <short_desc>SVG anchor on use fails</short_desc>
          <delta_ts>2012-04-20 09:11:11 -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>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.thesokolows.com/colorresearch/pedigrees/AARON_OF_QUIETUDE.xhtml</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="Stephen Chenney">schenney</reporter>
          <assigned_to name="Stephen Chenney">schenney</assigned_to>
          <cc>rwlbuis</cc>
    
    <cc>schenney</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>578466</commentid>
    <comment_count>0</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-03-14 09:10:22 -0700</bug_when>
    <thetext>http://code.google.com/p/chromium/issues/detail?id=118181

Chrome Version       : 18.0.1025.56 beta
URLs (if applicable) : http://www.thesokolows.com/colorresearch/pedigrees/AARON_OF_QUIETUDE.xhtml

Other browsers tested:
Add OK or FAIL after other browsers where you have tested this issue:
     Safari 5: FAIL
  Firefox 4.x: OK
       IE 7/8/9: NA

What steps will reproduce the problem?
1. From the example URL, click on the little eye symbol

What is the expected result?
Navigate to a picture of the horse (follow the link in the &lt;a&gt; element).

What happens instead?
The link in the containing element is followed.

To aid in producing a reduction, the example URL contains this, where the &quot;#male&quot; bbox contains the &quot;#eye&quot; bbox:
&lt;use xlink:href=&quot;#couple&quot; x=&quot;11&quot; y=&quot;14&quot; /&gt;
&lt;a xlink:href=&quot;ADRIAN_ASHMORE.xhtml&quot;&gt; &lt;use xlink:href= &quot;#male&quot; class=&quot;maleStyle  nonflaxenStyle  &quot; x=&quot;11&quot; y=&quot;14&quot; /&gt;&lt;/a&gt;
&lt;a xlink:href=&quot;ADRIAN_ASHMORE.xhtml&quot;&gt; &lt;text font-size=&quot;.7&quot; font-family=&quot;monospace&quot; x=&quot;11.5&quot; y=&quot;14.8&quot; &gt;ADRIAN ASHMORE&lt;/text&gt;&lt;/a&gt;

&lt;text font-size=&quot;.6&quot; font-family=&quot;monospace&quot; x=&quot;15&quot; y=&quot;15.6&quot; &gt;12877 -&lt;/text&gt;

&lt;text font-size=&quot;.7&quot; font-family=&quot;monospace&quot; x=&quot;11.3&quot; y=&quot;15.6&quot; &gt;CH&lt;/text&gt;

&lt;a xlink:href=&quot;http://www.morganhorse.com/upload/photos/3922AdrianAshmoreNew.jpg&quot; &gt; &lt;use xlink:href=&quot;#eye&quot; x=&quot;13&quot; y=&quot;14.9&quot; /&gt;&lt;/a&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578497</commentid>
    <comment_count>1</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2012-03-14 09:43:58 -0700</bug_when>
    <thetext>I think the reduction is confusing. Don&apos;t you mean
&lt;a xlink:href=&quot;outer.svg&quot;&gt;Click &lt;a xlink:href=&quot;inner.svg&quot;&gt;Here&lt;/a&gt;&lt;/a&gt;
that we always navigate to outer.svg even when clicking on &quot;Here&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>578522</commentid>
    <comment_count>2</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-03-14 10:15:10 -0700</bug_when>
    <thetext>Yeah, my reduction is not really a reduction. Note that your anchor inside anchor is in fact illegal according to the spec.

This might work, but I haven&apos;t tried yet. Still working through over 100 WebKit SVG bugs in crbug figuring out which ones are not yet in Bugzilla.

&lt;svg ...&gt;
  &lt;defs&gt;
    &lt;rect name=&quot;inner&quot; x=&quot;10&quot; y=&quot;10&quot; width=&quot;20&quot; height=&quot;20&quot;/&gt;
  &lt;/defs&gt;
  &lt;a href=&quot;outerHref&quot;&gt;&lt;rect x=&quot;5&quot; y=&quot;5&quot; width=&quot;30&quot; height=&quot;30&quot;/&gt;&lt;/a&gt;
  &lt;a href=&quot;innerHref&quot;&gt;&lt;use xlink:href=&quot;#inner&quot;/&gt;&lt;/a&gt;
&lt;/svg&gt;

When you click at 15,15 you will apparently go to outerHref. Regardless, there is some bug that the referenced site reveals.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604323</commentid>
    <comment_count>3</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2012-04-17 14:04:01 -0700</bug_when>
    <thetext>Is this still a problem in trunk?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>604994</commentid>
    <comment_count>4</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-18 12:42:13 -0700</bug_when>
    <thetext>This does indeed seem to have been fixed. Both the original bug report test case and a layout test I constructed both work as expected in Chrome 19.0.1084.24 beta.

I think I&apos;ll upload the test anyway, just for future regression testing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>605011</commentid>
    <comment_count>5</comment_count>
      <attachid>137747</attachid>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-18 13:00:35 -0700</bug_when>
    <thetext>Created attachment 137747
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>606208</commentid>
    <comment_count>6</comment_count>
      <attachid>137747</attachid>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2012-04-19 17:08:48 -0700</bug_when>
    <thetext>Comment on attachment 137747
Patch

Looks good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>606614</commentid>
    <comment_count>7</comment_count>
      <attachid>137747</attachid>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-20 09:11:06 -0700</bug_when>
    <thetext>Comment on attachment 137747
Patch

Clearing flags on attachment: 137747

Committed r114750: &lt;http://trac.webkit.org/changeset/114750&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>606615</commentid>
    <comment_count>8</comment_count>
    <who name="Stephen Chenney">schenney</who>
    <bug_when>2012-04-20 09:11:11 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>137747</attachid>
            <date>2012-04-18 13:00:35 -0700</date>
            <delta_ts>2012-04-20 09:11:06 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-81122-20120418160033.patch</filename>
            <type>text/plain</type>
            <size>2312</size>
            <attacher name="Stephen Chenney">schenney</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDExNDU0NykKKysrIExheW91dFRlc3RzL0NoYW5nZUxvZwkod29y
a2luZyBjb3B5KQpAQCAtMSwzICsxLDE2IEBACisyMDEyLTA0LTE4ICBTdGVwaGVuIENoZW5uZXkg
IDxzY2hlbm5leUBjaHJvbWl1bS5vcmc+CisKKyAgICAgICAgU1ZHIGFuY2hvciBvbiB1c2UgZmFp
bHMKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTgxMTIy
CisKKyAgICAgICAgU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i8+Cis8L3N2Zz4KKwpJbmRleDogTGF5b3V0VGVzdHMvc3Zn
L2N1c3RvbS9hbmNob3Itb24tdXNlLnN2Zwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9zdmcv
Y3VzdG9tL2FuY2hvci1vbi11c2Uuc3ZnCShyZXZpc2lvbiAwKQorKysgTGF5b3V0VGVzdHMvc3Zn
L2N1c3RvbS9hbmNob3Itb24tdXNlLnN2ZwkocmV2aXNpb24gMCkKQEAgLTAsMCArMSwyMSBAQAor
PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRw
Oi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBvbmxvYWQ9ImNsaWNrTGlua05vdygpIj4KKyAgICA8
c2NyaXB0PgorICAgICAgICBpZiAod2luZG93LmxheW91dFRlc3RDb250cm9sbGVyKQorICAgICAg
ICAgICAgd2luZG93LmxheW91dFRlc3RDb250cm9sbGVyLndhaXRVbnRpbERvbmUoKTsKKworICAg
ICAgICBmdW5jdGlvbiBjbGlja0xpbmtOb3coKSB7CisgICAgICAgICAgICBpZiAod2luZG93LmV2
ZW50U2VuZGVyKSB7CisgICAgICAgICAgICAgICAgZXZlbnRTZW5kZXIubW91c2VNb3ZlVG8oMjAs
IDIwKTsKKyAgICAgICAgICAgICAgICBldmVudFNlbmRlci5tb3VzZURvd24oKTsKKyAgICAgICAg
ICAgICAgICBldmVudFNlbmRlci5tb3VzZVVwKCk7CisgICAgICAgICAgICAgICAgaWYgKHdpbmRv
dy5sYXlvdXRUZXN0Q29udHJvbGxlcikKKyAgICAgICAgICAgICAgICAgICAgbGF5b3V0VGVzdENv
bnRyb2xsZXIubm90aWZ5RG9uZSgpOworICAgICAgICAgICAgfQorICAgICAgICB9CisgICAgPC9z
Y3JpcHQ+CisgICAgPGRlZnM+CisgICAgICAgIDxyZWN0IGlkPSJyZWN0LXRvLXVzZSIgeD0iMTAi
IHk9IjEwIiB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIGZpbGw9ImdyZWVuIiAvPgorICAgIDwvZGVm
cz4KKyAgICA8YSB4bGluazpocmVmPSJyZXNvdXJjZXMvcmVkLWNoZWNrZXIucG5nIj48cmVjdCB4
PSI1IiB5PSI1IiB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9InJlZCIvPjwvYT4KKyAgICA8
YSB4bGluazpocmVmPSJyZXNvdXJjZXMvZ3JlZW4tY2hlY2tlci5wbmciPjx1c2UgeGxpbms6aHJl
Zj0iI3JlY3QtdG8tdXNlIiAvPjwvYT4KKzwvc3ZnPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>