summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/389924-1b.html
blob: 4c6af6fee8e1f7008456fa4686e22a417026e8f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
<head>
<script>
function boom()
{
  var table = document.getElementById("table");

  var newCaption = document.createElement('caption');
  newCaption.appendChild(document.createTextNode("THIS SHOULD BE VISIBLE"));
  table.appendChild(newCaption);
  table.appendChild(document.createElement("tbody"));
}
</script>

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

<table id="table"></table>
</body>
</html>