change _getTextNodes & _setTextNodes methods to work under IE8