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 :
- <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">
- <g id="groupExterieur">
- <g id="groupInterieur">
- <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"/>
- </g>
- </g>
- </svg>
after i do a :
- svg.load(myCode, true);
and after this load when i look the code svg with :
- $('#svgbasics').svg('get').toSVG()
I get :
- <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">
- <g id="groupExterieur">
- <g id="groupInterieur">
- <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"/>
- </g>
- </g>
- </svg>
Only on IE, if someone know why?
Thanks a lot,
Jérémy