()
| 8483 | return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true'); |
| 8484 | } |
| 8485 | function getSelectionInformation() { |
| 8486 | var focusedElem = getActiveElementDeep(); |
| 8487 | return { |
| 8488 | focusedElem: focusedElem, |
| 8489 | selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null |
| 8490 | }; |
| 8491 | } |
| 8492 | /** |
| 8493 | * @restoreSelection: If any selection information was potentially lost, |
| 8494 | * restore it. This is useful when performing operations that could remove dom |
no test coverage detected
searching dependent graphs…