summaryrefslogtreecommitdiffstats
path: root/layout/svg/crashtests/385840-1.svg
blob: cf7ff6949cecb7c1187b4ba41c52e645dbf47b39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" onload="boom();">

<script>

function boom()
{
  var SVG_NS = "http://www.w3.org/2000/svg";

  var svgCircle = document.createElementNS(SVG_NS, 'circle');
  var svgText = document.createElementNS(SVG_NS, 'text');
  svgText.appendChild(document.createTextNode("foo"));
  svgCircle.appendChild(svgText);

  document.removeChild(document.documentElement);
  document.appendChild(svgCircle);
}

</script>

</svg>