Use `textContent` when `innerText` is not available.

Firefox does not implement `innerText` so this led to another `TypeError`.