Highcharts adds duplicate xmlns attribute to SVG element in IE

后端 未结 2 1768
说谎
说谎 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: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

提交回复
热议问题