Add support for Firefox

- Use textContent instead of innerText when the latter is not supported.