* @ReactInputSelection: React input selection module. Based on Selection.js, * but modified to be suitable for react and has a couple of bug fixes (doesn't * assume buttons have range selections allowed). * Input selection module for React.
(elem)
| 6755 | */ |
| 6756 | |
| 6757 | function hasSelectionCapabilities(elem) { |
| 6758 | var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); |
| 6759 | return nodeName && (nodeName === 'input' && elem.type === 'text' || nodeName === 'textarea' || elem.contentEditable === 'true'); |
| 6760 | } |
| 6761 | |
| 6762 | function getSelectionInformation() { |
| 6763 | var focusedElem = getActiveElement(); |
no outgoing calls
no test coverage detected