* Gets the key used to access text content on a DOM node. * * @return {?string} Key used to access text content. * @internal
()
| 1994 | * @internal |
| 1995 | */ |
| 1996 | function getTextContentAccessor() { |
| 1997 | if (!contentKey && ExecutionEnvironment.canUseDOM) { |
| 1998 | // Prefer textContent to innerText because many browsers support both but |
| 1999 | // SVG <text> elements don't support innerText even when <div> does. |
| 2000 | contentKey = 'textContent' in document.documentElement ? 'textContent' : 'innerText'; |
| 2001 | } |
| 2002 | return contentKey; |
| 2003 | } |
| 2004 | |
| 2005 | /** |
| 2006 | * This helper object stores information about text content of a target node, |
no outgoing calls
no test coverage detected