Prefer textContent to innerText

Fixes #807.