Fix failures in Firefox around incompatible js.

replaces innerText with textContent
[#52671347]

Conflicts:
	gen/axs_testing.js
Replace webkit specific js.

mozMatchesSelector works in both Chrome and Firefox.
[Finishes #52671347]