MCPcopy Index your code
hub / github.com/docker/getting-started / getParentNode

Function getParentNode

app/src/static/js/react-bootstrap.js:3096–3102  ·  view source on GitHub ↗

* Returns the parentNode or the host of the element * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} parent

(element)

Source from the content-addressed store, hash-verified

3094
3095
3096function getParentNode(element) {
3097 if (element.nodeName === 'HTML') {
3098 return element;
3099 }
3100
3101 return element.parentNode || element.host;
3102}
3103/**
3104 * Returns the scrolling parent of the given element
3105 * @method

Callers 3

getScrollParentFunction · 0.85
isFixedFunction · 0.85
getBoundariesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…