fix for browsers that support textContent