use textContent instead of createTextNode when showing errors