DEV Community

Discussion on: Appending a Child to an SVG using Pure Javascript

Collapse
 
tomhermans profile image
tom hermans

I KNEW this !
Yet it didn't stop me being baffled for over an hour why my created group wasn't showing.

var group = document.createElementNS(svgns, "g");

NOT
var group = document.createElementNS(svg, "g");

when you defined a string S.V.G.N.S. with the namespace string!!
Thanks Gavin. This article helped me hunt my mistake down