summaryrefslogtreecommitdiffstats
path: root/dom/smil/crashtests/541297-1.svg
blob: 4268232ba1be7830428acb0892969d56a1a4d3a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"><svg id="w"><animate/></svg><script type="text/javascript">
<![CDATA[

function boom()
{
  anim = document.createElementNS("http://www.w3.org/2000/svg", "animate");
  document.documentElement.appendChild(anim);
  document.documentElement.removeChild(anim);
  
  setTimeout(t, 0);
  
  function t()
  {
    document.getElementById("w").appendChild(anim);
  }
}

window.addEventListener("load", boom, false);

]]>
</script></svg>