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
Right you are, thank you and apologies! I made the mistake of renaming things halfway through editing!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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
Right you are, thank you and apologies! I made the mistake of renaming things halfway through editing!