* @hasSelectionCapabilities: we get the element types that support selection * from https://html.spec.whatwg.org/#do-not-apply, looking at `selectionStart` * and `selectionEnd` rows.
(elem)
| 7088 | |
| 7089 | |
| 7090 | function hasSelectionCapabilities(elem) { |
| 7091 | var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); |
| 7092 | return nodeName && (nodeName === 'input' && (elem.type === 'text' || elem.type === 'search' || elem.type === 'tel' || elem.type === 'url' || elem.type === 'password') || nodeName === 'textarea' || elem.contentEditable === 'true'); |
| 7093 | } |
| 7094 | function getSelectionInformation() { |
| 7095 | var focusedElem = getActiveElementDeep(); |
| 7096 | return { |
no outgoing calls
no test coverage detected