[Javascript] IE: tbody and innerHTML

Michael Borchers list at tridemail.de
Fri Jan 19 08:51:59 CST 2007


my script successfully creates an element TBODY

  var offersProductsTbody = document.createElement("TBODY");
  offersProductsTbody.id = offersProductsRowID;

  offersProductsTable.appendChild(offersProductsTbody);

  document.getElementById(offersProductsRowID).innerHTML = 
'<tr><td>test</td></tr>';




everything works fine when inserting HTML in FF,
but as I understand, IE cannot use the innerHTML method
for writing in <tbody>.

since the table is very big I cannot recreate it by DOM,
it would be too much work.

Any workaround?! 




More information about the Javascript mailing list