Whenever I try to change the src of an svg using Wix Code, it works on Chrome, but doesn’t on Internet Explorer.
Here’s the SVG code:
<svg height="400" width="880"><rect width="100%" height="100%" fill="rgb(255,255,255)"/><rect x="0" y="0" width="81" height="81" fill="rgb(179,146,5)"/><rect x="560" y="160" width="81" height="81" fill="rgb(67,123,235)"/><rect x="0" y="80" width="81" height="81" fill="rgb(0,0,0)"/><rect x="80" y="80" width="81" height="81" fill="rgb(0,0,0)"/><rect x="160" y="80" width="81" height="81" fill="rgb(0,0,0)"/><rect x="720" y="240" width="81" height="81" fill="rgb(0,0,0)"/><rect x="640" y="240" width="81" height="81" fill="rgb(0,0,0)"/><rect x="480" y="240" width="81" height="81" fill="rgb(0,0,0)"/><rect x="560" y="240" width="81" height="81" fill="rgb(0,0,0)"/><rect x="160" y="240" width="81" height="81" fill="rgb(0,0,0)"/><rect x="80" y="240" width="81" height="81" fill="rgb(0,0,0)"/><rect x="240" y="240" width="81" height="81" fill="rgb(0,0,0)"/><rect x="320" y="240" width="81" height="81" fill="rgb(0,0,0)"/><rect x="480" y="160" width="81" height="81" fill="rgb(0,0,0)"/><rect x="480" y="80" width="81" height="81" fill="rgb(0,0,0)"/><rect x="560" y="80" width="81" height="81" fill="rgb(0,0,0)"/><rect x="640" y="80" width="81" height="81" fill="rgb(0,0,0)"/><rect x="400" y="80" width="81" height="81" fill="rgb(0,0,0)"/><rect x="320" y="0" width="81" height="81" fill="rgb(0,0,0)"/><rect x="320" y="80" width="81" height="81" fill="rgb(0,0,0)"/><rect x="800" y="80" width="81" height="81" fill="rgb(0,0,0)"/></svg>
When you enter this page you should see something like this:
but in IE it’s just blank. However, if I go to Inspect element on IE, select the svg, which only contains:
<svg xmlns="http://www.w3.org/2000/svg" role="img" style="stroke-width: 0px;" viewBox="0 0 0 0" preserveAspectRatio="xMidYMid meet" type="shape"><g /></svg>
and replace it with the correct svg code, it displays it. So I guess it’s a Wix Code related problem.
Does anyone have a clue?