()
| 7058 | } |
| 7059 | |
| 7060 | function getActiveElementDeep() { |
| 7061 | var win = window; |
| 7062 | var element = getActiveElement(); |
| 7063 | |
| 7064 | while (element instanceof win.HTMLIFrameElement) { |
| 7065 | if (isSameOriginFrame(element)) { |
| 7066 | win = element.contentWindow; |
| 7067 | } else { |
| 7068 | return element; |
| 7069 | } |
| 7070 | |
| 7071 | element = getActiveElement(win.document); |
| 7072 | } |
| 7073 | |
| 7074 | return element; |
| 7075 | } |
| 7076 | /** |
| 7077 | * @ReactInputSelection: React input selection module. Based on Selection.js, |
| 7078 | * but modified to be suitable for react and has a couple of bug fixes (doesn't |
no test coverage detected