()
| 10664 | return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true'); |
| 10665 | } |
| 10666 | function getSelectionInformation() { |
| 10667 | var focusedElem = getActiveElementDeep(); |
| 10668 | return { |
| 10669 | // Used by Flare |
| 10670 | activeElementDetached: null, |
| 10671 | focusedElem: focusedElem, |
| 10672 | selectionRange: hasSelectionCapabilities(focusedElem) ? getSelection(focusedElem) : null |
| 10673 | }; |
| 10674 | } |
| 10675 | /** |
| 10676 | * @restoreSelection: If any selection information was potentially lost, |
| 10677 | * restore it. This is useful when performing operations that could remove dom |
no test coverage detected