code: function isDescendant(descendant, ancestor) {
  	return ancestor
  		&& descendant
  		&& Boolean(ancestor.compareDocumentPosition(descendant) & Node.DOCUMENT_POSITION_CONTAINED_BY);
  }
docs: Returns true if descendant is a descendant of ancestor, false otherwise.