Closed wout closed 1 year ago
Looks like this api is not implemented yet. Will add it if I find some time :).
Feel free to create a PR to add it yourself 😄
nvm, it is implemented. if nodes.map is not a function, what did you pass into the append fn? Isnt it an array?
// EDIT: oh i see, append/prepend work with a argument list and not with an array. need to fix that
Brilliant, thanks! :)
There still seems to be an issue. The error has gone, but the objects are not inserted into the DOM with append()
and prepend()
.
Gnaa thought it was a quick fix. Alright let me actually look into this 😄
Thanks again! :smile: I'll test it out later today!
I'm using svgdom with without SVG.js and my code failed because it uses
Element.append()
andElement.prepend()
. the error I'm getting is:If I use
appendChild()
instead, it does work.