* Finds the root node (document, shadowDOM root) of the given element * @method * @memberof Popper.Utils * @argument {Element} node * @returns {Element} root node
(node)
| 3214 | |
| 3215 | |
| 3216 | function getRoot(node) { |
| 3217 | if (node.parentNode !== null) { |
| 3218 | return getRoot(node.parentNode); |
| 3219 | } |
| 3220 | |
| 3221 | return node; |
| 3222 | } |
| 3223 | /** |
| 3224 | * Finds the offset parent common to the two provided nodes |
| 3225 | * @method |
no outgoing calls
no test coverage detected
searching dependent graphs…