Why do innerHTML and textContent give different results