Hi Andreas, They are both part of DOM2, and for Text nodes they are equivalent. In fact Mozilla implements .nodeValue for such nodes by forwarding to .data.
-Jonathan On 11/30/05, Andreas Neumann <[EMAIL PROTECTED]> wrote: > > Hi all, > > I have a question regarding .nodeValue vs. .data > > For setting the content of a text element one can use either > .nodeValue or .data - which one is correct and standards conform and > which not? > > Or can one use both methods with not particular advantages/disadvantages? > > examples: > > myText.firstChild.nodeValue = "bla" > or > myText.firstChild.data = "bla" > > Thanks for any info on that issue, > > Andreas > > > > > > > ----- > 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 > > > > > > > [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- 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/