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.

enter image description here

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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -