Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#442 closed bug (duplicate)

When appending a tbody to a table, the automatic tbody creation should not occur

Reported by: [email protected] Owned by:
Priority: major Milestone: 1.1a
Component: core Version:
Keywords: table, tbody, append Cc:
Blocked by: Blocking:


I have a table with a thead that does not change and a tbody whose content varies. Each time I refresh the contents of the table, I append the new tr's and td's into a tbody element and append the new tbody element to the table. Unfortunately, when I append the tbody to the table, I get the following:


<thead>...Constant Content...</thead>


<tbody>...Refreshed Content...</tbody>



I have changed the following line in the domManip function in order to stop the extra tbody from being appended:


if ( table && this.nodeName.toUpperCase() == "TABLE" && a[0].nodeName.toUpperCase() != "THEAD" ) {


if ( table && this.nodeName.toUpperCase() == "TABLE" && a[0].nodeName.toUpperCase() != "THEAD" && a[0].nodeName.toUpperCase() != "TBODY" ) {

This way I don't get any extra tbody's in my dom.

Change History (2)

comment:1 Changed 16 years ago by anonymous

comment:2 Changed 16 years ago by brandon

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.