var tbl = document.createElement('table');
var tr = tbl.insertRow(-1);
var td = tr.insertCell(-1);
===== setAttribute with rowspan or colspan isn't working in IE =====
You need to use a capital S like this:
td.setAttribute("rowSpan", "2");
td.setAttribute("colSpan", "2");