Description: Check to see if a DOM node is within another DOM node.
containerThe DOM element that may contain the other element.
containedThe DOM node that may be contained by the other element.
jQuery.contains(document.documentElement, document.body); // true
jQuery.contains(document.body, document.documentElement); // false