Functions
-
isLogicalAncestor(ancestorNode, node) : {boolean}
-
Utility function that checks if two DOM nodes are directly or logically connected
Parameters:
Name Type Description ancestorNode
Node the assumed ancestor node node
Node child node Returns:
true if the two DOM nodes are directly or logically connected, false otherwise.
- Type
- boolean