Prefer textContent to innerText

Fixes #807.

Haven't tested extensively.