MCPcopy Create free account
hub / github.com/microsoft/SandDance / getActiveElementDeep

Function getActiveElementDeep

docs/external/js/react-dom.development.js:7060–7075  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

getSelectionInformationFunction · 0.85
restoreSelectionFunction · 0.85

Calls 2

getActiveElementFunction · 0.85
isSameOriginFrameFunction · 0.85

Tested by

no test coverage detected