mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-11 02:11:34 +08:00
innerText depends on styling as it doesn't display hidden elements. Therefore, it's better to use textContent not to cause unnecessary reflows. However, IE<9 don't support textContent so the innerText fallback is necessary.