IE (or possibly Javascript library) Adding SVG namespace twice

I changed this and moved this comment to the beginning.

According to Stackoverflow, this may be a mistake in some basic things that no one can fix. But I will consider the best method that you propose to save as part of our application in order to remove the false attribute as a solution. It would be unfair otherwise.

I have a weirdness that I'm trying to solve, which is incomprehensible. Firstly, it is not clear that this is IE, except that this behavior does not occur in Chrome or Firefox. We use the Anychart and D3 graphics libraries to generate the SVG on the page. All this is wonderful. The application is a print application and extracts the allowed css + html into a separate div and sends it via REST to the formatting service.

The problem is only in IE and only with the Anychart chart. If you study this page:

http://www.xportability.com/XEPOnline/FOTestSuite.html

And look at Example Image No. 4, you will see a diagram. Using IE and the DOM Explorer, you will see the following:

Explorer DOM

. , "". javascript SVG ( - HTML DOM Explorer), , HTML :

 <svg xmlns="http://www.w3.org/2000/svg" width="800" height="600" xmlns="http://www.w3.org/2000/svg">

document.getElementById("anychart").outerHTML .

. , , .

  • D3 . .
  • Chrome Firefox.
  • , IE DOM-.

- ? - , , IE ?

. , , . (, ), () HTML, XML.

2. , Anychart JS, ​​Internet Explorer. Anychart. . , IE DOM, , IE. .

, , . .

, Chrome Firefox ... .

+4
1

Anychart Javascript. , .

0

All Articles