Provide a crossbrowser equivalent for textContent

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