| OLD | NEW |
| (Empty) |
| 1 <svg id="svgRoot" xmlns="http://www.w3.org/2000/svg" onload="go()"> | |
| 2 <defs> | |
| 3 <text> | |
| 4 <tspan id="tspan1" x="375"></tspan> | |
| 5 <tspan>PASS</tspan> | |
| 6 </text> | |
| 7 </defs> | |
| 8 <g><rect id="legendbox"/></g> | |
| 9 <script><![CDATA[ | |
| 10 document.execCommand("SelectAll"); | |
| 11 elem = document.getElementById("tspan1"); | |
| 12 elem.removeAttribute("x"); | |
| 13 range = document.createRange(); | |
| 14 range.setStartBefore(document.getElementById("tspan1")); | |
| 15 range.setEndAfter(document.getElementById("legendbox")); | |
| 16 range.deleteContents(); | |
| 17 | |
| 18 if (window.testRunner) | |
| 19 testRunner.dumpAsText(); | |
| 20 | |
| 21 function go() { | |
| 22 var svgRoot = document.getElementById("svgRoot"); | |
| 23 var passText = document.createElementNS("http://www.w3.org/2000/svg", "tex
t"); | |
| 24 var textContent = document.createTextNode("PASS"); | |
| 25 passText.appendChild(textContent); | |
| 26 svgRoot.appendChild(passText); | |
| 27 } | |
| 28 ]]></script> | |
| 29 </svg> | |
| OLD | NEW |