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

Holger Jeromin <[email protected]> Tue, 02 Aug 2011 19:45:39 +0200
Newsgroups gmane.comp.mozilla.devel.svg
Message-ID <[email protected]>
Martin Honnen schrieb am 02.08.2011 16:20:
> Tamer Higazi wrote:
>> bild.setAttribute("xlink:href",BildURL);
>> this.svg[0].appendChild(bild);
>> If i take a look in Firebug, the element fully exists.
>> Any ideas to solve it?!
> Well you certainly need
>    bild.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', 
> BildURL)
> to create the proper XLINK href attribute.

My guess would be
bild.setAttributeNS('http://www.w3.org/1999/xlink', 'href', BildURL);

-- 
Holger