code: function isContained(node, range) {
  	var pos1 = getPosition(node, 0, range.startContainer, range.startOffset);
  	var pos2 = getPosition(node, getNodeLength(node), range.endContainer, range.endOffset);
  
  	return getFurthestAncestor(node) == getFurthestAncestor(range.startContainer)
  		&& pos1 == "after"
  		&& pos2 == "before";
  }
docs: "contained" as defined by DOM Range: "A Node node is contained in a range
  range if node's furthest ancestor is the same as range's root, and (node, 0)
  is after range's start, and (node, length of node) is before range's end."