DEV Community

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

Collapse
 
zerogiven profile image
CSoellinger

At the JS function the second line should be

const element = document.createElementNS('w3.org/2000/svg', elementType);

Little correction for the copy&paste fools like me :D

Collapse
 
gavinsykes profile image
Gavin Sykes

Right you are, thank you and apologies! I made the mistake of renaming things halfway through editing!