dist/dom-selection.es.js
function isWithin(container, sel) {
	sel = sel || getSelection();
	return container.contains(sel.anchorNode) && container.contains(sel.focusNode);
}
function isWithin(container, sel) {
	sel = sel || getSelection();
	return container.contains(sel.anchorNode) && container.contains(sel.focusNode);
}
function isWithin ( container , sel ) { sel = sel || getSelection ( ) ; return container . contains ( sel . anchorNode ) && container . contains ( sel . focusNode ) ; }
Is the Selection within given container Node?
@param {Node} container  The container node
@param {Selection} sel
@return {Boolean}
Is the Selection within given container Node?