summaryrefslogtreecommitdiffstats
path: root/dom/events/crashtests/422009-1.xhtml
blob: 1bf37906df1fa1635bdfd7a0ffffcd6741cfdae6 (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
26
27
28
29
30
31
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<bindings xmlns="http://www.mozilla.org/xbl">
  <binding id="g">
    <implementation>
      <constructor>
        throw 3;
      </constructor>
    </implementation>
  </binding>
</bindings>

<script type="text/javascript">

function boom()
{
  var HTML_NS = "http://www.w3.org/1999/xhtml";
  var span = document.createElementNS(HTML_NS, 'span');
  span.style.MozBinding = "url(#g)";
  document.removeChild(document.documentElement)
  var w = document.createElementNS(HTML_NS, 'body');
  w.setAttribute('onload', "/");
  document.appendChild(span);
}

</script>
</head>

<body onload="boom();"></body>
</html>