milsymbol: Openlayers example does not work in IE11

I noticed that the OpenLayers example at http://spatialillusions.github.io/MilSymbol/examples/openlayers3/index.html does not work in IE11. When I open the debug console the following error is shown multiple times:

XML5634: An attribute with the same name already exists on this element. Line: 1, Column 155

Any idea why it don’t work?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 22 (19 by maintainers)

Most upvoted comments

The issue seems to be that the SVG generated by MilSymbol contains two xmlns attributes. If I comment out the following lines I get rid of the XML5634 error https://github.com/spatialillusions/MilSymbol/blob/master/bin/MilSymbol.js#L6641 https://github.com/spatialillusions/MilSymbol/blob/master/bin/MilSymbol.js#L6912

if(_MilSymbol.userAgentIE){svgSymbol.setAttribute("xmlns", svgNS)};

Unfortunately it looks like the example then runs into a bug in openlayers and I’m still not able to render the example in IE11. I get several IndexSizeErrors exceptions. I found a couple of OL-issues may be related: https://github.com/openlayers/ol3/issues/3220 https://github.com/openlayers/ol3/issues/2861