* Gets the key used to access text content on a DOM node. * * @return {?string} Key used to access text content. * @internal
()
| 2761 | * @internal |
| 2762 | */ |
| 2763 | function getTextContentAccessor() { |
| 2764 | if (!contentKey && ExecutionEnvironment.canUseDOM) { |
| 2765 | // Prefer textContent to innerText because many browsers support both but |
| 2766 | // SVG <text> elements don't support innerText even when <div> does. |
| 2767 | contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText'; |
| 2768 | } |
| 2769 | return contentKey; |
| 2770 | } |
| 2771 | |
| 2772 | /** |
| 2773 | * This helper object stores information about text content of a target node, |
no outgoing calls
no test coverage detected