In my current application, I need to copy the contents of one table to another ... With innerHTML setting, it works fine in FF ... but not in IE8 ... Here is the code I used to copy to FF:
getID("tableA").innerHTML = getID("tableB").innerHTML;
// getID is a custom function i wrote to provide a shorter version of document.getElementById();
Table A is empty (only the tbody tag exists). TableB is as follows:
table
tbody
tr
td "Content" /td
td "Content" /td
/tr
/tbody
/table
I already tried using nodeValue .. or appendData ... or outerHTML .. but nothing really worked ...
source
share