Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / text / inline-text-destroy-attributes-crash.xhtml
blob6b4d01dff5cf655c064cad0c9d66718853a4d186
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">
3 <defs>
4 <text id="text1">
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>
7 </text>
8 </defs>
9 <use id="use1" xlink:href="#text1"/>
10 <text id="text2"></text>
11 <script>
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"));
21 </script>
22 </svg>