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/xlink">
5 <tspan id=
"tspan1" x=
"906" y=
"250">Test passes it if does not crash
</tspan>
6 <tspan id=
"tspan2" x=
"447" y=
"108">PASS
</tspan>
9 <use id=
"use1" xlink:
href=
"#text1"/>
10 <text id=
"text2"></text>
12 if (window.testRunner)
13 testRunner.dumpAsText();
15 var range = document.createRange();
16 range.setStart(document.getElementById(
"use1"),
0);
17 range.setEnd(document.getElementById(
"text2"),
0);
18 (new XMLSerializer()).serializeToString(range.extractContents());
19 document.getElementById('text1').offsetTop;
20 range.surroundContents(document.getElementById(
"tspan1"));