* Finds the root node (document, shadowDOM root) of the given element * @method * @memberof Popper.Utils * @argument {Element} node * @returns {Element} root node
(node)
| 1739 | * @returns {Element} root node |
| 1740 | */ |
| 1741 | function getRoot(node) { |
| 1742 | if (node.parentNode !== null) { |
| 1743 | return getRoot(node.parentNode); |
| 1744 | } |
| 1745 | |
| 1746 | return node; |
| 1747 | } |
| 1748 | |
| 1749 | /** |
| 1750 | * Finds the offset parent common to the two provided nodes |
no outgoing calls
no test coverage detected