Use Node.textContent instead of HTMLElement.innerText.
This change uses Node.textContent to set text to Node objects for better compliance with HTML5.