context: FCKDomRange.prototype.Select = function(){	if ( this._Range )	{		var bIsCollapsed = this.CheckIsCollapsed() ;				// Create marker tags for the start and end boundaries.		var eStartMarker	= this._GetRangeMarkerTag( true ) ;				if ( !bIsCollapsed )			var eEndMarker	= this._GetRangeMarkerTag( false ) ;		// Create the main range which will be used for the selection.		var oIERange = this.Window.document.body.createTextRange() ;				// Position the range at the start boundary.		oIERange.moveToElementText( eStartMarker ) ;		oIERange.moveStart( 'character', 1 ) ;		if ( !bIsCollapsed )		{			// Create a tool range for the end.			var oIERangeEnd = this.Window.document.body.createTextRange() ;			// Position the tool range at the end.			oIERangeEnd.moveToElementText( eEndMarker ) ;						// Move the end boundary of the main range to match the tool range.			oIERange.setEndPoint( 'EndToEnd', oIERangeEnd ) ;			oIERange.moveEnd( 'character', -1 ) ;		}				// Remove the markers (reset the position, because of the changes in the DOM tree).		this._Range.setStartBefore( eStartMarker ) ;		eStartMarker.parentNode.removeChild( eStartMarker ) ;				if ( bIsCollapsed )		{			// The following trick is needed so IE makes collapsed selections			// inside empty blocks visible (expands the block).			try			{				oIERange.pasteHTML('&nbsp;') ;				oIERange.moveStart( 'character', -1 ) ;			}			catch (e){}			oIERange.select() ;			oIERange.pasteHTML('') ;		}		else		{			this._Range.setEndBefore( eEndMarker ) ;			eEndMarker.parentNode.removeChild( eEndMarker ) ;			oIERange.select() ;		}	}}
meta: 8533	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8533/9e983f26dc3628701a539d2377aaa3db1e8f1f71/fckdomrange_ie.js/buggy/library/src/webapp/editor/FCKeditor/editor/_source/classes/fckdomrange_ie.js