Highcharts adds duplicate xmlns attribute to SVG element in IE

后端 未结 2 1767
说谎
说谎 2021-01-21 21:42

I\'m using Highcharts to create charts in a PHP web application. Problem is that in IE, the SVG element that is created ends up with duplicate xmlns attributes. It can be seen i

相关标签:
2条回答
  • 2021-01-21 22:29

    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.

    0 讨论(0)
  • 2021-01-21 22:32

    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

    0 讨论(0)
提交回复
热议问题