I am currently trying to make a SVG generator using HTML5 and JQuery. To make this "possible", I am creating an empty HTML5 SVG element then add some HTML5 Polygon elment on it using JQuery.
The problem is that the polygons added by .append() using JQuery doesn't appear on my screen. Is there a way for this to work ? The code seems to be correct using the Chrome Developper Console.
Example of code produced by JQuery (Developper Console View) :
<svg id="map" width="800" height="600" style="width:800px;height:600px;background-color:white;border:1px solid #0000ff;">
<polygon points="330, 285, 400, 250, 470, 285, 400, 320" style="fill:blue;stroke:black;stroke-width:0;fill-rule:evenodd;"></polygon>
</svg>
Actually, this code didn't show anything on my screen if using my JQuery function.