JavaScript createElement and SVG
I want to create inline SVG graphics using Javascript. However, it seems like createElementNS function applies some normalization and transforms all tags to lowercase. That is fine for HTML but not for XML/SVG. The NS I used is http://www.w3.org/2000/svg . In particular I have problems creating a element. As it will be appended as an thus will not work. I did some search but could not find a solution yet. Does anybody know a solution? Thanks a lot! document.createElementNS("http://www.w3.org/2000/svg","textPath"); results in <textpath></textpath> gumape I hope, the following example will help