summaryrefslogtreecommitdiffstats
path: root/layout/generic/crashtests/508908-1.html
blob: 71af22c4270377a496316cdba372e721d1018f22 (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
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">


function boom()
{
  var sel = document.createElementNS("http://www.w3.org/1999/xhtml", "select");
  var opt;
  for (var i = 0; i < 43; ++i) {
    opt = document.createElementNS("http://www.w3.org/1999/xhtml", "option");
    opt.appendChild(document.createTextNode(i));
    sel.appendChild(opt);
  }
  opt.selected = "selected";
  document.getElementById("div").appendChild(sel);
}

</script>
</head>

<body onload="boom();"><div id="div"></div><embed type="application/x-test"></embed></body>
</html>