Condition innerText with textContent. Closes #851
Merge pull request #854 from mapbox/issue851

Condition innerText with textContent. Closes #851