docs: function( endNode, endOffset ) {
  			// W3C requires a check for the new position. If it is before the start
  			// boundary, the range should be collapsed to the new end. It seams we
  			// will not need this check for our use of this class so we can ignore
  			// it for now.
  
  			// Fixing invalid range end inside dtd empty elements.
  			if ( endNode.type == CKEDITOR.NODE_ELEMENT && CKEDITOR.dtd.$empty[ endNode.getName() ] )
  				endOffset = endNode.getIndex() + 1, endNode = endNode.getParent();
  
  			this.endContainer = endNode;
  			this.endOffset = endOffset;
  
  			if ( !this.startContainer ) {
  				this.startContainer = endNode;
  				this.startOffset = endOffset;
  			}
  
  			updateCollapsed( this );
  		}