Possible Duplicate:
How to retrieve the text of a DOM Text node?
In my experiments to handle DOM mutation observers I've noticed that when the target
is a text node there are four fields all containing the new text of the node.
data
nodeValue
textContent
wholeText
Is there a "best practice" for which of these fields I should use?
Are some just for compatibility with other browsers or older DOM standards? Does it make a difference whether I'm reading vs modifying the text? If one is best what is the purpose of the others?