[svg-developers] correct way to write code that modifies DOM?

2005-05-25 Thread Peter Thompson
I started looking at Firefox with native SVG enabled. The following file shows a few ways to modify a text element character data. You click on the text item and it is modified. Simple. They don't all work in Firefox/SVG. The programmer in me says just code it the way that works, but I am

Re: [svg-developers] correct way to write code that modifies DOM?

2005-05-25 Thread Jorg Heymans
Peter Thompson wrote: > case 'text4': // works in Squiggle, Firefox/SVG and ASVG > element.firstChild.data = "hello"; > break; > case 'text5': // works in Squiggle, Firefox/SVG and ASVG > element.firstChild.nodeValue = "hello"; > break; These are the recommended

Re: [svg-developers] correct way to write code that modifies DOM?

2005-05-25 Thread Andre M. Winter - Carto.net
hi peter, get and set methods (esp. getFirstChild(), getTarget(), etc.) are old methods introduced by ASV in order to work as a plugin in NN4. they are just outdated and that's why they do not work in FF. andré -- ___ andre m. wi