summaryrefslogtreecommitdiffstats
path: root/dom/svg/crashtests/413174-1.svg
blob: 1b1bdf0b9335a6025ca02ef9ff8e781d738bec91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     onload="boom();">

  <script>

function boom()
{
  var g = document.getElementById("g");
  var use = document.getElementById("use");

  g.appendChild(use);
  document.documentElement.appendChild(use);
  document.documentElement.appendChild(g);
}

  </script>

  <g id="g" style="counter-reset: c;">
    <rect width="1" height="1"/>
  </g>

  <use id="use" xlink:href="#g"/>

</svg>