Check if given element contains given parent somewhere in the DOM tree.
The element to be tested.
The ancestor (not necessarily parent) of the element.
True if parent is an ancestor of the element, false otherwise.
Check if given element contains given parent somewhere in the DOM tree.