summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dynamic/015.html
blob: 8b420d17fed81472f1780f748dc7a485b00967f7 (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
<html>
<head>
<script type="text/javascript">
	
	function addRows() {
		var tbodyElem = document.getElementById("myTbody");
    	row0 = tbodyElem.insertRow(0);
    	row0.insertCell(0).appendChild(document.createTextNode("Row_0"));
    			
		row4 = tbodyElem.insertRow(tbodyElem.rows.length);
    	row4.insertCell(0).appendChild(document.createTextNode("Row_4"));
    	
		row5 = tbodyElem.insertRow(-1);
    	row5.insertCell(0).appendChild(document.createTextNode("Row_5"));
    			
		row6 = tbodyElem.insertRow(100);
		row6.insertCell(0).appendChild(document.createTextNode("Row_6"));
    }

</script>
</head>
<body onLoad="addRows()">
<p>You should see a table with 6 rows, labeled "Row_0", "Row_1", "Row_2", "Row_3", "Row_4", "Row_5", from top to bottom.</p>

<table border=1 id="myTbody">
	<tr>
		<td>Row_1</td>
	</tr>
	<tr>
		<td>Row_2</td>
	</tr>
	<tr>
		<td>Row_3</td>
	</tr>
</table>

</body>
</html>