function createRange(doc) {
		return "createRange" in doc ? doc.createRange() : DOMUtils.DOM.createRng();
	}
This module contains logic for creating caret positions within a document a caretposition
is similar to a DOMRange object but it doesn't have two endpoints and is also more lightweight
since it's now updated live when the DOM changes.

@private
@class tinymce.caret.CaretPosition
@example
var caretPos1 = new CaretPosition(container, offset);
var caretPos2 = CaretPosition.fromRangeStart(someRange);