context: FCKDomRange.prototype.Select = function(){	var oRange = this._Range ;	if ( oRange )	{		var oDocRange = this.Window.document.createRange() ;		oDocRange.setStart( oRange.startContainer, oRange.startOffset ) ;				try		{			oDocRange.setEnd( oRange.endContainer, oRange.endOffset ) ;		}		catch ( e )		{			// There is a bug in Firefox implementation (it would be too easy			// otherwhise). The new start can't be after the end (W3C says it can).			// So, let's create a new range and collapse it to the desired point.			if ( e.toString().Contains( 'NS_ERROR_ILLEGAL_VALUE' ) )			{				oRange.collapse( true ) ;				oDocRange.setEnd( oRange.endContainer, oRange.endOffset ) ;			}			else				throw( e ) ;		}		var oSel = this.Window.getSelection() ;		oSel.removeAllRanges() ;				// We must add a clone otherwise Firefox will have rendering issues.		oSel.addRange( oDocRange ) ;	}}
meta: 1235	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1235/c3e806dd2e80d30e5028083f65e626da8d5acba4/fckdomrange_gecko.js/buggy/reference/library/src/webapp/editor/FCKeditor/editor/_source/classes/fckdomrange_gecko.js