* Returns the parentNode or the host of the element * @method * @memberof Popper.Utils * @argument {Element} element * @returns {Element} parent
(element)
| 3094 | |
| 3095 | |
| 3096 | function 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 |
no outgoing calls
no test coverage detected
searching dependent graphs…