summaryrefslogtreecommitdiffstats
path: root/dom/html/crashtests/564461.xhtml
blob: 9a7bfeb246bb3d56c84d337f64a0b2a9ab4aecbc (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
<html xmlns="http://www.w3.org/1999/xhtml">
<head>


<bindings xmlns="http://www.mozilla.org/xbl">
  <binding id="editable"><content><div contenteditable="true" xmlns="http://www.w3.org/1999/xhtml"></div></content></binding>
</bindings>

<script type="text/javascript">
<![CDATA[

function boom()
{
  while (document.documentElement.firstChild) document.documentElement.removeChild(document.documentElement.firstChild);
  
  document.addEventListener("DOMSubtreeModified", function(){}, false);
  document.addEventListener("DOMNodeInsertedIntoDocument", function(){}, false);
  document.documentElement.appendChild(document.createElementNS("http://www.w3.org/1999/xhtml", "body"));
  document.body.style.MozBinding = 'url(#editable)';
}

]]>
</script></head>

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