OLD | NEW |
| (Empty) |
1 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> | |
2 <script> | |
3 <![CDATA[ | |
4 if (window.testRunner) { | |
5 testRunner.dumpAsText(); | |
6 testRunner.waitUntilDone(); | |
7 gc = function(){window.GCController.collect()}; | |
8 } else if (!window.gc) | |
9 gc = function(){}; | |
10 | |
11 window.onload = function(){ | |
12 if (location.hash != "#2") { | |
13 if (location.hash) | |
14 location.hash = "#" + (parseInt(location.hash.slice(1)) + 1).toStrin
g(); | |
15 else | |
16 location.hash = "#1"; | |
17 var ir = document.getElementById("use1").instanceRoot; | |
18 ir.correspondingUseElement.parentElement.removeChild(ir.correspondingUse
Element); | |
19 gc(); | |
20 ir.correspondingUseElement; | |
21 setTimeout(function(){location.reload()},0); | |
22 } else { | |
23 document.getElementById("t1").appendChild(document.createTextNode("PASS:
Successfully removed use element.")); | |
24 if (window.testRunner) | |
25 testRunner.notifyDone(); | |
26 } | |
27 } | |
28 //]]> | |
29 </script> | |
30 <g id="g1" /> | |
31 <use xlink:href="#g1" id="use1" /> | |
32 <text x="20" y="20" fill="green" id="t1"></text> | |
33 </svg> | |
OLD | NEW |