section.appendChild(child);
child = next;
}
}
/**
* Render html into a table section. This is achieved by first setting the html in a DIV
* element, and then swap the table section with the corresponding element in the DIV. This
* method is used in IE since the normal optimizations are not feasible.
*
* @param table the {@link AbstractCellTable}
* @param section the {@link TableSectionElement} to replace
* @param html the html of a table section element containing the rows
*/
private void replaceTableSection(AbstractCellTable<?> table, TableSectionElement section,
SafeHtml html) {
String sectionName = section.getTagName().toLowerCase();
replaceAllRowsImplLegacy(table, section, html);
if ("tbody".equals(sectionName)) {
((TableSectionChangeHandler) table).onTableBodyChange(section);
} else if ("thead".equals(sectionName)) {
((TableSectionChangeHandler) table).onTableHeadChange(section);
} else if ("tfoot".equals(sectionName)) {
((TableSectionChangeHandler) table).onTableFootChange(section);
}
}
Again, many thanks for all your help. We couldn't have solved this otherwise.