summaryrefslogtreecommitdiffstats
path: root/editor/libeditor/crashtests/580151-1.xhtml
blob: 3799411117089262d54bb1d14940eac700dc2acd (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
<!DOCTYPE html>
<html>
<head>
<script>

var t;

function boom()
{
  var b = document.createElementNS("http://www.w3.org/1999/xhtml", "body");
  t = document.createElementNS("http://www.w3.org/1999/xhtml", "textarea");
  b.appendChild(t);
  document.removeChild(document.documentElement)
  document.appendChild(b)
  document.removeChild(document.documentElement)
  var ns = document.createElementNS("http://www.w3.org/1999/xhtml", "script");
  var nt = document.createTextNode("t.appendChild(document.createTextNode(' '));");
  ns.appendChild(nt);
  b.appendChild(ns);
  document.appendChild(b);
}

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