Plugin SVG, problem with load

Plugin SVG, problem with load

Hello everyone,

I'm writing to you because i got a problem with the plugin SVG jquery.

Indeed, when i try to do an svg.load(myCode,true), the attribute xlink:href become xlink: and so the SVG can't be load properly.

this is my var myCode :
  1. <svg zoomAndPan="magnify" viewBox="none" id="root" preserveAspectRatio="xMidYMid meet" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
  2. <g id="groupExterieur">
  3.       <g id="groupInterieur">
  4.            <image x="0" y="0" width="5000" height="1567" id="imageBackground" onmousedown="             startDrag(evt);" onmousemove=" dragging(evt);" onmouseup=" endDrag(evt);" xlink:href="/bpspocket/module/admin/svg/plan4.png"/>
  5.       </g>
  6. </g>
  7. </svg>

after i do a :

  1. svg.load(myCode, true);
and after this load when i look the code svg with :

  1. $('#svgbasics').svg('get').toSVG()
I get :

  1. <svg zoomAndPan="magnify" viewBox="none" id="root" preserveAspectRatio="xMidYMid meet" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
  2. <g id="groupExterieur">
  3.       <g id="groupInterieur">
  4.            <image x="0" y="0" width="5000" height="1567" id="imageBackground" onmousedown="             startDrag(evt);" onmousemove=" dragging(evt);" onmouseup=" endDrag(evt);" xlink:="/bpspocket/module/admin/svg/plan4.png"/>
  5.       </g>
  6. </g>
  7. </svg>



Only on IE, if someone know why?

Thanks a lot,

Jérémy