summaryrefslogtreecommitdiff
path: root/dom/svg/crashtests/405639-1.svg
blob: 242eff9aca1f44699f41eb0a71e4dfa7465b0621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<svg xmlns="http://www.w3.org/2000/svg" 
     xmlns:xlink="http://www.w3.org/1999/xlink"
     onload="boom();">
     
<script type="text/javascript">

function boom() { 
  var greensquare = document.getElementById("greensquare");
  var use = document.getElementById("use");
  greensquare.appendChild(use);
}

</script>

<rect id="greensquare" x="10" y="10" width="10" height="10" fill="green" />

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

</svg>