Fixed a textContent bug in FireFox