* @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)
| 5865 | */ |
| 5866 | |
| 5867 | function hasSelectionCapabilities(elem) { |
| 5868 | var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); |
| 5869 | return nodeName && (nodeName === 'input' && elem.type === 'text' || nodeName === 'textarea' || elem.contentEditable === 'true'); |
| 5870 | } |
| 5871 | |
| 5872 | function getSelectionInformation() { |
| 5873 | var focusedElem = getActiveElement(); |
no outgoing calls
no test coverage detected