add: if (!e) return {scrollX : sx, scrollY : sy};  
context: 	getBookmark : function(simple) {		var inst = this.instance;		var rng = this.getRng();		var doc = inst.getDoc(), b = inst.getBody();		var sp, le, s, e, nl, i, si, ei, w;		var trng, sx, sy, xx = -999999999;		// Skip Opera for now		if (tinyMCE.isOpera)			return null;		sx = doc.body.scrollLeft + doc.documentElement.scrollLeft;		sy = doc.body.scrollTop + doc.documentElement.scrollTop;		if (tinyMCE.isSafari || simple)			return {rng : rng, scrollX : sx, scrollY : sy};		if (tinyMCE.isMSIE) {			if (rng.item) {				e = rng.item(0);				nl = doc.getElementsByTagName(e.nodeName);				for (i=0; i<nl.length; i++) {					if (e == nl[i]) {						sp = i;						break;					}				}				return {					tag : e.nodeName,					index : sp,					scrollX : sx,					scrollY : sy				};			} else {				trng = rng.duplicate();				trng.collapse(true);				sp = Math.abs(trng.move('character', xx));				trng = rng.duplicate();				trng.collapse(false);				le = Math.abs(trng.move('character', xx)) - sp;				return {					start : sp,					length : le,					scrollX : sx,					scrollY : sy				};			}		}		if (tinyMCE.isGecko) {			s = this.getSel();			e = this.getFocusElement();			if (e && e.nodeName == 'IMG') {				return {					start : -1,					end : -1,					scrollX : sx,					scrollY : sy				};			}			// Caret or selection			if (s.anchorNode == s.focusNode && s.anchorOffset == s.focusOffset) {				e = this._getPosText(b, s.anchorNode, s.focusNode);				if (!e)					return {scrollX : sx, scrollY : sy};				return {					start : e.start + s.anchorOffset,					end : e.end + s.focusOffset,					scrollX : sx,					scrollY : sy				};			} else {				e = this._getPosText(b, rng.startContainer, rng.endContainer);				return {					start : e.start + rng.startOffset,					end : e.end + rng.endOffset,					scrollX : sx,					scrollY : sy				};			}		}		return null;	},
meta: 2801	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2801/73d1f56978a0ea105ec0b8e8e1fbe1289cfdb8d9/TinyMCE_Selection.class.js/clean/jscripts/tiny_mce/classes/TinyMCE_Selection.class.js