summaryrefslogtreecommitdiff
path: root/layout/generic/crashtests/372376-1.xhtml
blob: ddb7d2d1799650159e082871e1aaba5cd0a3e8ae (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
29
30
31
32
33
34
35
36
37
38
39
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<script>
<![CDATA[

var HTML_NS = "http://www.w3.org/1999/xhtml";

function boom()
{
  var $table = document.getElementById('table');
  var $oldtd = document.getElementById('oldtd');

  $table.style.outline = "1px solid green";

  var $tr = document.createElementNS(HTML_NS, 'tr');
  $tr.style.display = "inherit";
  $table.insertBefore($tr, $oldtd);

  var $td = document.createElementNS(HTML_NS, 'td'); 
  $tr.appendChild($td);

  var $anothertr = document.createElementNS(HTML_NS, 'tr'); 
  $table.insertBefore($anothertr, $tr);
  
  document.documentElement.removeAttribute("class");
}

]]>
</script>
</head>

<body onload="setTimeout(boom, 30)">

<table border="1" id="table">
<td id="oldtd"></td>
</table>

</body>
</html>