summaryrefslogtreecommitdiffstats
path: root/dom/html/crashtests/324918-1.xhtml
blob: 921714cff3cd745c04144d7e4e861af0e27108ca (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>
<script>


function init()
{ 
  var sel = document.getElementById("sel");
  var div = document.getElementById("div");
  var newo = document.createElementNS("http://www.w3.org/1999/xhtml", "option");

  sel.appendChild(div);
  div.appendChild(newo);
  sel.removeChild(div);
}

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

<div id="div"><option></option></div>

<select id="sel"></select>

</body>
</html>