Highcharts adds duplicate xmlns attribute to SVG element in IE

为君一笑 提交于 2019-12-02 01:33:33

We fixed the bug now, see the the linked code at https://github.com/highslide-software/highcharts.com/issues/1978. While the element was created with createElementNS, only IE9 and IE10 actually created a visible attribute for it. So the workaround was to add the attribute as well if not present.

Looks like a bug in http://code.highcharts.com/highcharts.js

f=this.createElement("svg").attr({xmlns:sa,version:"1.1"})

seems wrong (for SVG) and should be

f=this.createElementNS(xmlns:sa, "svg").attr({version:"1.1"})

although that change might break the IE < 9 VML implementation. Perhaps you should report it to hightcharts support

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!