* Finds the root node (document, shadowDOM root) of the given element * @method * @memberof Popper.Utils * @argument {Element} node * @returns {Element} root node
(node)
| 1727 | * @returns {Element} root node |
| 1728 | */ |
| 1729 | function getRoot(node) { |
| 1730 | if (node.parentNode !== null) { |
| 1731 | return getRoot(node.parentNode); |
| 1732 | } |
| 1733 | |
| 1734 | return node; |
| 1735 | } |
| 1736 | |
| 1737 | /** |
| 1738 | * Finds the offset parent common to the two provided nodes |
no outgoing calls
no test coverage detected