Hi,
sample at: http://www.zuccaralloo.de/devgroup/samples/cloneTSpan.svg Regards- -Heiko http://www.zuccaralloo.de/devgroup --- In [email protected], [EMAIL PROTECTED] wrote: > > Hi, > > I have been trying to create a tspan entry for an existing text node i.e. > do the following: > > - create a clone of a certain span element > - update the text of this CLONED tspan element > - APPEND THIS MODIFIED CLONE ONTO THE TEXT NODE > This just does not work. Essentially, I can see the updated text. But, 'dy' > remains at 0 it appears so- the text just overwrites itself. > > Any suggestions? If I use parseXML, it works properly. But, I really wish > to work this off the DOM - not via the parseXML route. > > I have included my script below: > > function clickRtn(evt) > { > doc = evt.target.ownerDocument; > > rt1 = doc.getElementById('ListArea'); // text node > rt2 = doc.getElementById('ListItemsEntrySample'); // tspan node under > the above text node > > rt3 = rt2.cloneNode(true); > > rt3.childNodes.item(0).dy = '1.2em'; > rt3.childNodes.item(0).data = 'testing time'; > rt3.addEventListener('click', clickRtn, false); > > rt1.appendChild(rt3); > > > } > > Thanks, > Shreesh ----- 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/

