summaryrefslogtreecommitdiffstats
path: root/LayoutTests/fast/dom/HTMLTableRowElement/insertCell.html
blob: 04b79a58c052b5e8fc1bbf9eb56e3dedc6c6a546 (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
<html>

<head>
<script type="text/javascript">

function test()
{
    if (window.layoutTestController)
        layoutTestController.dumpAsText();
    var tr = document.getElementById('row');
    tr.insertCell(0).innerHTML = "<td>cell inside table inside cell 0</td>";
    tr.insertCell(1).innerHTML = "<td>cell inside table inside cell 1</td>";
}

</script>
</head>

<body onload="test()">

<p>This tests a particular case of insertCell that was crashing on ebay at the time the test was written.</p>

<p><table><tr id="row"></tr></table></p>

<p>If there was no crash, and you can see text above mentioning cell 1 as well as cell 0, the test passed.</p>

</body>

</html>