K
Kevin Smith
I want to take a document that contains a number of tables and wrap the
tables inside new elements. I have tried something similar to the
following:
tparent = table.parentNode;
wrapper = document.createElement('DIV');
wrapper.appendChild(table);
tparent.replaceChild(wrapper,table);
This doesn't seem to work though (tested in Safari).
tables inside new elements. I have tried something similar to the
following:
tparent = table.parentNode;
wrapper = document.createElement('DIV');
wrapper.appendChild(table);
tparent.replaceChild(wrapper,table);
This doesn't seem to work though (tested in Safari).