Re: adding image namespace in svg through JS still doesn't show me the picture

Robert Longson <[email protected]> Fri, 5 Aug 2011 01:27:17 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.svg
Organization http://groups.google.com
Message-ID <be46b3dd-8764-4065-bf18-f0cd6744d777@l37g2000yqd.googlegroups.com>
>
> this.svg = document.getElementsByTagNameNS('http://www.w3.org/2000/
> svg','svg');
> var bild = document.createElementNS('http://www.w3.org/2000/
> svg','image');
> var BildURL = this.image[0][0].getAttribute('xlink:href');

This needs to use getAttributeNS

> bild.setAttribute("xlink:href",BildURL);

And this needs to use setAttributeNS

I'm not sure what if anything else is wrong as this seems to be a
partial example

Best regards

Robert.