Normalizes element innerText behaviour across browsers