| OLD | NEW |
| 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> | 2 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k"> |
| 3 <defs> | 3 <defs> |
| 4 <text id="text1"> | 4 <text id="text1"> |
| 5 <tspan id="tspan1" x="906" y="250">Test passes it if does not crash</tsp
an> | 5 <tspan id="tspan1" x="906" y="250">Test passes it if does not crash</tsp
an> |
| 6 <tspan id="tspan2" x="447" y="108">PASS</tspan> | 6 <tspan id="tspan2" x="447" y="108">PASS</tspan> |
| 7 </text> | 7 </text> |
| 8 </defs> | 8 </defs> |
| 9 <use id="use1" xlink:href="#text1"/> | 9 <use id="use1" xlink:href="#text1"/> |
| 10 <text id="text2"></text> | 10 <text id="text2"></text> |
| 11 <script> | 11 <script> |
| 12 if (window.layoutTestController) | 12 if (window.layoutTestController) |
| 13 layoutTestController.dumpAsText(); | 13 layoutTestController.dumpAsText(); |
| 14 | 14 |
| 15 var range = document.createRange(); | 15 var range = document.createRange(); |
| 16 range.setStart(document.getElementById("use1"), 0); | 16 range.setStart(document.getElementById("use1"), 0); |
| 17 range.setEnd(document.getElementById("text2"), 0); | 17 range.setEnd(document.getElementById("text2"), 0); |
| 18 (new XMLSerializer()).serializeToString(range.extractContents()); | 18 (new XMLSerializer()).serializeToString(range.extractContents()); |
| 19 document.getElementById('text1').offsetTop; | 19 document.getElementById('text1').offsetTop; |
| 20 range.surroundContents(document.getElementById("tspan1")); | 20 range.surroundContents(document.getElementById("tspan1")); |
| 21 </script> | 21 </script> |
| 22 </svg> | 22 </svg> |
| OLD | NEW |