cross-browser equivalent for textContent

https://bugs.dojotoolkit.org/ticket/10291