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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Testcase for bug 284852</title>
<style type="text/css">
table {
border-collapse: collapse;
border:3px dashed blue;
}
td {
border:3px dotted black;
}
</style>
<script>
function insertCell(id,rowspan) {
var tr = document.getElementById(id);
var td = document.createElement('td');
td.setAttribute('rowspan',rowspan);
tr.insertBefore(td,tr.firstChild)
}
</script>
</head>
<body>
<table>
<tbody>
<tr><td>g1row1</td></tr>
<tr><td>g1row2</td></tr>
<tr><td>g1row3</td></tr>
</tbody>
<tbody>
<tr><td>g2row1</td></tr>
<tr><td>g2row2</td></tr>
<tr><td>g2row3</td></tr>
<tr id="r1"><td rowspan="0">g2row4</td></tr>
</tbody>
</table>
<script>
insertCell('r1','0');
insertCell('r1','0');
insertCell('r1','0');
insertCell('r1','0');
insertCell('r1','0');
insertCell('r1','0');
insertCell('r1','0');
insertCell('r1','0');
insertCell('r1','0');
insertCell('r1','0');
</script>
<button onclick="insertCell('r1','0')">insert cell</button>
<pre>
Clicking the button above five times or more gives:
###!!! ASSERTION: invalid BC damage area: 'PR_FALSE', file nsTableFrame.cpp, line 4567
</pre>
<table>
<tbody>
<tr><td>g1row1</td></tr>
<tr><td>g1row2</td></tr>
<tr><td>g1row3</td></tr>
</tbody>
<tbody>
<tr><td>g2row1</td></tr>
<tr><td>g2row2</td></tr>
<tr><td>g2row3</td></tr>
<tr id="r2"><td rowspan="2">g2row4</td></tr>
</tbody>
</table>
<script>
insertCell('r2','2');
insertCell('r2','2');
insertCell('r2','2');
insertCell('r2','2');
insertCell('r2','2');
insertCell('r2','2');
insertCell('r2','2');
insertCell('r2','2');
insertCell('r2','2');
insertCell('r2','2');
</script>
<button onclick="insertCell('r2','2')">insert cell</button>
<pre>
Clicking the button gives:
###!!! ASSERTION: invalid BC damage area: 'PR_FALSE', file nsTableFrame.cpp, line 4567
</pre>
<table>
<tbody>
<tr><td>g1row1</td></tr>
<tr><td>g1row2</td></tr>
<tr><td>g1row3</td></tr>
</tbody>
<tbody>
<tr><td>g2row1</td></tr>
<tr><td>g2row2</td></tr>
<tr><td>g2row3</td></tr>
<tr id="r3"></tr>
</tbody>
</table>
<script>
insertCell('r3','0');
insertCell('r3','0');
insertCell('r3','0');
insertCell('r3','0');
insertCell('r3','0');
insertCell('r3','0');
insertCell('r3','0');
insertCell('r3','0');
insertCell('r3','0');
insertCell('r3','0');
</script>
<button onclick="insertCell('r3','0')">insert cell</button>
<pre>
Clicking the button the first time gives:
###!!! ASSERTION: invalid BC damage area: 'PR_FALSE', file nsTableFrame.cpp, line 4567
</pre>
</body>
</html>
|