or bug in my SVG (more likely) ?

here is a piece of js

//////////////////////////////
spic = svgdoc.getElementById('spic');
var node=parseXML(dat,svgdoc) ;
pic.replaceChild(node,spic) ;
spic = doc.getElementById('newspic') ;
spic.setAttribute('id','spic');
// spic is now null in ASV6 and OK in ASV3
////////////////////////////////////

svgdoc is the topmost svg element
pic is a <g> element containing an svg element
with id="spic".
dat is a string containing a complete svg document
where the topmost svg element has id="newspic".
I parse it and replace the <svg id="spic"
by <svg id="newspic"

Then I try to get a handle on this svg element
but it only works with asv3 .... ?????

Any idea what is wrong ?
Thanks a lot
JD




-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to