added replaceData to text nodes