<?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>16268</bug_id>
          
          <creation_ts>2007-12-03 03:22:55 -0800</creation_ts>
          <short_desc>target=&quot;_top&quot; in embedded SVG fails to replace parent content</short_desc>
          <delta_ts>2012-06-20 06:07:10 -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>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/test-scalable-icon2.xhtml</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NeedsReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>15836</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>japhet</cc>
    
    <cc>rwlbuis</cc>
    
    <cc>timur.mehrvarz</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>63118</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-03 03:22:55 -0800</bug_when>
    <thetext>target=&quot;_top&quot; in embedded SVG fails to replace parent content

I&apos;m not sure if this is an SVG issue or a more general link/object issue.

http://www.w3.org/2004/CDF/TestSuite/WICD_CDR_WP1/wicdmatrix.xhtml?implemented2
Shows how the test authors expected target=&quot;_top&quot; to work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63277</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-04 13:53:15 -0800</bug_when>
    <thetext>This seems to be an IE thing:
http://msdn2.microsoft.com/en-us/library/ms534659.aspx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63279</commentid>
    <comment_count>2</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-04 13:53:38 -0800</bug_when>
    <thetext>Frame* FrameTree::find(const AtomicString&amp; name) const
seems to correctly check for _top however.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63302</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-04 18:42:20 -0800</bug_when>
    <thetext>Ok.  Our problem here is in SVGAElement::defaultEventHandler:

        String target = getAttribute(SVGNames::targetAttr);
        String xlinktarget = getAttribute(XLinkNames::showAttr);
        if (e &amp;&amp; e-&gt;button() == MiddleButton)
            target = &quot;_blank&quot;;
        else if (target.isEmpty()) // if target is empty, default to &quot;_self&quot; or use xlink:target if set
            target = (xlinktarget == &quot;new&quot;) ? &quot;_blank&quot; : &quot;_self&quot;;

That might be the correct behavior for xlink:show, but that&apos;s not right for :target, which should behave like html&apos;s :target attribute and correctly support _top, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64260</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-12-15 03:03:19 -0800</bug_when>
    <thetext>This will be really easy to fix if we just make a test of all the various xlink:show, xlink:target and null:target values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>645432</commentid>
    <comment_count>5</comment_count>
    <who name="Rob Buis">rwlbuis</who>
    <bug_when>2012-06-09 16:06:02 -0700</bug_when>
    <thetext>The target=&quot;_top&quot; part of this test seems to work fine these days.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>653381</commentid>
    <comment_count>6</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2012-06-20 06:07:10 -0700</bug_when>
    <thetext>Yes, I would be shocked if this didn&apos;t work today.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>