mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-03-29 22:37:48 +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.