function getContentEditableRoot(root, node) {
		while (node && node != root) {
			if (isContentEditableTrue(node) || isContentEditableFalse(node)) {
				return node;
			}

			node = node.parentNode;
		}

		return null;
	}
This class handles control selection of elements. Controls are elements
that can be resized and needs to be selected as a whole. It adds custom resize handles
to all browser engines that support properly disabling the built in resize logic.

@class tinymce.dom.ControlSelection