Added a innerText shim for Firefox compatibility and updated the tests.