OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-12-12 b4a3d2e4dca6417f7891179808773d62202ddeba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/**
 * Finds the root node (document, shadowDOM root) of the given element
 * @method
 * @memberof Popper.Utils
 * @argument {Element} node
 * @returns {Element} root node
 */
export default function getRoot(node) {
  if (node.parentNode !== null) {
    return getRoot(node.parentNode);
  }
 
  return node;
}