I want to create inline SVG graphics using Javascript.
However, it seems like createElementNS function applies some normalization and transforms all tags
I have just resolved a similar problem. document.createElement (and I assume document.createElementNS), when called from a HTML page creates a HTML node (where case doesnt matter), not an xml node.
The following works in Chrome:
doc = document.implementation.createDocument(null, null, null); doc.createElementNS("http://www.w3.org/2000/svg","textPath");
you will get your mixed case node.