rem: caretPos.end = txtarea.sel_start; 
add: caretPos.end = txtarea.sel_start; 
context: function getCaretPosition(txtarea){	var caretPos = new caretPosition();		// simple Gecko/Opera way	if(txtarea.selectionStart || txtarea.selectionStart == 0)	{		caretPos.start = txtarea.selectionStart;		caretPos.end = txtarea.selectionEnd;	}	// dirty and slow IE way	else if(document.selection)	{			// get current selection		var range = document.selection.createRange();		// a new selection of the whole textarea		var range_all = document.body.createTextRange();		range_all.moveToElementText(txtarea);				// calculate selection start point by moving beginning of range_all to beginning of range		var sel_start;		for (sel_start = 0; range_all.compareEndPoints('StartToStart', range) < 0; sel_start++)		{					range_all.moveStart('character', 1);		}			txtarea.sel_start = sel_start;			// we ignore the end value for IE, this is already dirty enough and we don't need it		caretPos.start = txtarea.sel_start;		caretPos.end = txtarea.sel_start;				}	return caretPos;}
meta: 2692	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2692/09c9a3e7a10d36dc7cbfa7d48f8c533f6a2fd107/editor.js/clean/styles/subsilver2/template/editor.js