4 ms·
framework.html() would presumably have the same problems as e.innerHTML (as you're probably aware). The examples that come to mind are replacing something like
by MaulingMonkey 11y ago
framework.html() would presumably have the same problems as e.innerHTML (as you're probably aware). The examples that come to mind are replacing something like...
e.innerHTML = "<td class=\"" + type + ">" + value + "</td>"
with:
d3.select(e).append("td").attr("class", type).text(value)
or:
$(e).append("<td></td>").addClass(type).text(value)