fix for whitespace parsing in textContent