MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / getContainer

Function getContainer

javascript/chrome-driver/atoms.js:121–127  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

119 }
120
121 function getContainer(elem) {
122 var container = elem.parentNode;
123 if (SHADOW_DOM_ENABLED && (container instanceof ShadowRoot)) {
124 container = elem.host;
125 }
126 return container;
127 }
128
129 var doc = goog.dom.getOwnerDocument(elem);
130 var container = getContainer(elem);

Callers 1

atoms.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected