HTML can't abide empty table |
The insertRow() method inserts a new empty table row. In addition, when the table is empty the row is inserted into a TBODY which is created and inserted into the table. Load the table1 file which has a non-empty table element. Create an empty TABLE element and append to the document. Check to make sure that the empty TABLE element doesn't have a TBODY element. Insert a new row into the empty TABLE element. Check for existence of the a TBODY element in the table.