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