If an element is created using say:
then the setAttribute method does not exist for it. You have to use:
It is clear that there is different code for both methods. Would it perhaps be
more efficient to get the createSVGRect method etc to use the createElementNS
method code in some way? That would kill this bug at the same time. Of course I
could be talking rubbish as I don't know the implementation details.
Created attachment 95724 [details]
svg::createSVGRect creates an instance of SVGRect
document::createElementNS("...", "rect") creates an instance of SVGRectElement
The two are different things. SVGRect doesn't contain a setAttribute method.
Oops, I used to know that. Stupid mistake! Sorry about that.