(doc)
| 6762 | } |
| 6763 | |
| 6764 | function getActiveElement(doc) { |
| 6765 | doc = doc || (typeof document !== 'undefined' ? document : undefined); |
| 6766 | |
| 6767 | if (typeof doc === 'undefined') { |
| 6768 | return null; |
| 6769 | } |
| 6770 | |
| 6771 | try { |
| 6772 | return doc.activeElement || doc.body; |
| 6773 | } catch (e) { |
| 6774 | return doc.body; |
| 6775 | } |
| 6776 | } |
| 6777 | |
| 6778 | /** |
| 6779 | * Given any node return the first leaf node without children. |
no outgoing calls
no test coverage detected