javascript - IE11 jQuery html() does not function inside SVG element -
works in chrome, etc.
screenshot should explain situation.
the svg's content has been changed in dom, 'dom explorer' reporting original rect still there (it's being shown).
interestingly enough, safari 7 on os x exhibits same behavior.
i faced same problem.
a quick fix use jquery empty() instead of html('');
e.g.,
var svg = d3.selectall("svg"); svg.each(function() { // not work in ie $(this).html(''); $(this).empty(); });
Comments
Post a Comment