1
0
mirror of https://github.com/DataTables/DataTables.git synced 2025-02-28 01:54:15 +01:00

Fix: The construct <tfoot><tr></tr></tfoot> would break the new table header/footer draw. While strictly this isn't valid HTML, 1.7 and before allowed it - so adding a condtion here to allow it in 1.8 as well

This commit is contained in:
Allan Jardine 2011-05-03 17:40:42 +01:00
parent 2c8868dd53
commit d4b8495378

View File

@ -3098,10 +3098,13 @@
for ( i=0, iLen=aoLocal.length ; i<iLen ; i++ ) for ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )
{ {
/* All cells are going to be replaced, so empty out the row */ /* All cells are going to be replaced, so empty out the row */
if ( aoLocal[i].nTr )
{
for ( k=0, kLen=aoLocal[i].nTr.childNodes.length ; k<kLen ; k++ ) for ( k=0, kLen=aoLocal[i].nTr.childNodes.length ; k<kLen ; k++ )
{ {
aoLocal[i].nTr.removeChild( aoLocal[i].nTr.childNodes[0] ); aoLocal[i].nTr.removeChild( aoLocal[i].nTr.childNodes[0] );
} }
}
for ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ ) for ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )
{ {