<?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>133505</bug_id>
          <alias>change-use-target</alias>
          <creation_ts>2014-06-04 01:03:40 -0700</creation_ts>
          <short_desc>Changing the referred element of a SVGUseElement doesn&apos;t change the SVGUseElement</short_desc>
          <delta_ts>2023-07-14 12:22:27 -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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>http://jsfiddle.net/gonsfx/vFChe/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Blocker</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Christoph Werner">gonsfx</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>rniwa</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>Svenja100388</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1013267</commentid>
    <comment_count>0</comment_count>
    <who name="Christoph Werner">gonsfx</who>
    <bug_when>2014-06-04 01:03:40 -0700</bug_when>
    <thetext>For my work on an SVG-based online editor for photo products i have to frequently swap out elements that are referred to by SVGUseElements.
This does not work in any Webkit Versions i tried. On a contrary, Firefox and old Opera work fine.



Steps to Reproduce

1) Open http://jsfiddle.net/gonsfx/vFChe/

It includes an inline SVG with a SVGUseElement that references the id &apos;target&apos; and a SVGGElement which is set to display: none.
An element with the id &apos;target&apos; does not exist at the beginning.

2) Click SVG (grey background)

Upon clicking the SVG, a new SVGPathElement with random dimensions and an id attribute of &apos;target&apos; is created and appended to the (invisible) SVGGElement.
Webkit correctly displays the SVGUseElement on the first click.

3) Click SVG again (grey background)

Upon clicking the SVG another time, the existing SVGPathElement is removed from the DOM and a new, randomly dimensioned one is appended to the (invisible) SVGGElement.
The SVGUseElement does not change.



Actual Results

SVGUseElement is updated/correctly drawn on the first click and doesn&apos;t change on any subsequent click.



Expected Results

SVGUseElement reflects the change of its referred Element on every click.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884427</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-15 16:55:46 -0700</bug_when>
    <thetext>Works in Chrome and Firefox. Fails in Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1884429</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-15 16:55:56 -0700</bug_when>
    <thetext>&lt;rdar://problem/97101293&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1966731</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-07-14 01:50:29 -0700</bug_when>
    <thetext>Seems to work fine now in Safari Technology Preview 174.

Might be fixed by https://github.com/WebKit/WebKit/commit/9057e67f74027a0a28d82230b35263cf724de030?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>