()
| 10630 | } |
| 10631 | |
| 10632 | function getActiveElementDeep() { |
| 10633 | var win = window; |
| 10634 | var element = getActiveElement(); |
| 10635 | |
| 10636 | while (element instanceof win.HTMLIFrameElement) { |
| 10637 | if (isSameOriginFrame(element)) { |
| 10638 | win = element.contentWindow; |
| 10639 | } else { |
| 10640 | return element; |
| 10641 | } |
| 10642 | |
| 10643 | element = getActiveElement(win.document); |
| 10644 | } |
| 10645 | |
| 10646 | return element; |
| 10647 | } |
| 10648 | /** |
| 10649 | * @ReactInputSelection: React input selection module. Based on Selection.js, |
| 10650 | * but modified to be suitable for react and has a couple of bug fixes (doesn't |
no test coverage detected