utils/dom/getcommonancestor
module
Functions
-
getCommonAncestor( nodeA, nodeB ) → null | Nodemodule:utils/dom/getcommonancestor~getCommonAncestorSearches and returns the lowest common ancestor of two given nodes.
Parameters
nodeA : NodeFirst node.
nodeB : NodeSecond node.
Returns
null | NodeLowest common ancestor of both nodes or
nullif nodes do not have a common ancestor.