When building SVG with JavaScript, use createElementNS with the namespace URI. Do not rely on setAttribute('xmlns', …) on random HTML elements.
createElementNS
setAttribute('xmlns', …)
Lines: 0 | Characters: 0