summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/713427-2.xhtml
blob: 39ac18ed07e7409c62e0aab54030641396afc9fe (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
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
<![CDATA[

function boom()
{
  while (document.documentElement.firstChild) {
    document.documentElement.firstChild.remove();
  }

  var td = document.createElementNS("http://www.w3.org/1999/xhtml", "td");
  td.setAttributeNS(null, "contenteditable", "true");
  (document.documentElement).appendChild(td);
  var head = document.createElementNS("http://www.w3.org/1999/xhtml", "head");
  (document.documentElement).appendChild(head);

  head.appendChild(td);
}

window.addEventListener("load", boom);

]]>
</script>
</head>

<body></body>
</html>