(elem)
| 5650 | return element; |
| 5651 | } |
| 5652 | function hasSelectionCapabilities(elem) { |
| 5653 | var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase(); |
| 5654 | return ( |
| 5655 | nodeName && |
| 5656 | (("input" === nodeName && |
| 5657 | ("text" === elem.type || |
| 5658 | "search" === elem.type || |
| 5659 | "tel" === elem.type || |
| 5660 | "url" === elem.type || |
| 5661 | "password" === elem.type)) || |
| 5662 | "textarea" === nodeName || |
| 5663 | "true" === elem.contentEditable) |
| 5664 | ); |
| 5665 | } |
| 5666 | function restoreSelection(priorSelectionInformation, containerInfo) { |
| 5667 | var curFocusedElem = getActiveElementDeep(containerInfo); |
| 5668 | containerInfo = priorSelectionInformation.focusedElem; |
no outgoing calls
no test coverage detected
searching dependent graphs…