Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ForeignObject not working in IE

Tags:

d3.js

I have my text appended to div inside a foreign object. The text renders fine in chrome but does not show at all in the IE. I have researched on it and it seems that IE does not support foreign object. Is there a work-around that will make it work in IE??

P.S. I am using d3.js to create circles and my foreign object is in the circle. I have used foreign object to overcome text alignment issues.

Thanks for the help in Advance.

like image 327
user2053459 Avatar asked Nov 26 '25 06:11

user2053459


1 Answers

IE9 does not support foreignObject. Check out the "Browser Compatibility" table at the bottom of the MDN page: foreignObject.

like image 99
Scott Cameron Avatar answered Dec 01 '25 00:12

Scott Cameron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!