1.2.2 table append problems.

1.2.2 table append problems.


Hi
I have found an issue in 1.2.2 regarding inserting 'tr' rows into a
table with nested tbody's.
The following script should insert rows into each tbody (including the
nested table), but it fails.
A simple table works as expected.
Also tried with a simple table that has multiple TBODY segments, and
this fails also.
All these scenarios worked fine in 1.2.1
Thanks
Darren
$().ready(function() {
var b = $('table tbody');
var string = new Array();
for (var x=0; x<2; x++) {
if (x % 2)
string.push('<tr class="cream1">');
else
string.push('<tr>');
string.push('<td><span class="indent2"></span>desc.. '+ x +'</
td>');
string.push('<td class="alignRight">'+ x +'.00</td>');
string.push('<td class="alignRight">'+ x +'.00</td>');
string.push('<td class="alignRight">'+ x +'.00</td>');
string.push('<td class="alignRight">'+ x +'.00</td>');
string.push('<td class="alignRight">'+ x +'.00</td>');
string.push('<td class="alignRight lastCol">'+ x +'.00</td>');
string.push('</tr>');
}
var writestring = string.join('');
b.append(writestring);
});
<table>
<tbody>
<tr class="2008">
<td><span class="indent1" />col 1</td>
<td class="alignRight">col 2</td>
<td class="alignRight">fred</td>
<td class="alignRight">???</td>
<td class="alignRight">0.00</td>
<td class="alignRight">laalaa</td>
<td class="alignRight lastCol">fin</td>
</tr>
<tr>
<td colspan=7>
<!-- nested table -->
<table border=1>
<tbody>
<tr class="2008">
<td><span class="indent1" />01/01/2008</td>
<td class="alignRight">blah</td>
<td class="alignRight">fred</td>
<td class="alignRight">???</td>
<td class="alignRight">0.00</td>
<td class="alignRight"></td>
<td class="alignRight lastCol"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>