Which one should I use?
http://reference.sitepoint.com/javascript/CharacterData/data
http://reference.sitepoint.com/javascript/Node/nodeValue
That site recommends using nodeValue yet shows data as having far better compatibility.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just use nodeValue, because data specifies it is the same as nodeValue.
The page clarifies:
Here is a good answer from another discussion on the topic:
http://tech.groups.yahoo.com/group/svg-developers/message/53314