* Gets the key used to access text content on a DOM node. * * @return {?string} Key used to access text content. * @internal
()
| 2899 | * @internal |
| 2900 | */ |
| 2901 | function getTextContentAccessor() { |
| 2902 | if (!contentKey && ExecutionEnvironment.canUseDOM) { |
| 2903 | // Prefer textContent to innerText because many browsers support both but |
| 2904 | // SVG <text> elements don't support innerText even when <div> does. |
| 2905 | contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText'; |
| 2906 | } |
| 2907 | return contentKey; |
| 2908 | } |
| 2909 | |
| 2910 | /** |
| 2911 | * This helper object stores information about text content of a target node, |
no outgoing calls
no test coverage detected