rem: h += addRenderInfo('selection.getSel().anchorNode.nodeName', sel.anchorNode.nodeName, 'bspec'); 
add: h += addRenderInfo('selection.getSel().anchorNode.nodeName', sel.anchorNode ? sel.anchorNode.nodeName : null, 'bspec'); 
context: function renderInfo() {	var se = document.getElementById('info'), n, sn, inst, h = '', sel, rng;	h += '<h2>Browser info:</h2>';	h += '<table border="0" cellpadding="0" cellspacing="0" class="data">';	h += addRenderInfo('navigator.userAgent', navigator.userAgent);	h += addRenderInfo('navigator.appName', navigator.appName);	h += addRenderInfo('navigator.platform', navigator.platform);	h += addRenderInfo('navigator.language', navigator.language, 'bspec');	h += addRenderInfo('navigator.browserLanguage', navigator.browserLanguage, 'bspec');	h += addRenderInfo('navigator.systemLanguage', navigator.systemLanguage, 'bspec');	h += addRenderInfo('navigator.userLanguage', navigator.userLanguage, 'bspec');	h += addRenderInfo('opera.buildNumber("inconspicuous")', typeof(opera) != 'undefined' && opera.buildNumber ? opera.buildNumber('inconspicuous') : null, 'bspec');	h += addRenderInfo('window.innerWidth', parent.window.innerWidth, 'bspec');	h += addRenderInfo('window.innerHeight', parent.window.innerHeight, 'bspec');	h += addRenderInfo('document.body.offsetWidth', parent.document.body.offsetWidth);	h += addRenderInfo('document.body.offsetHeight', parent.document.body.offsetHeight);	h += addRenderInfo('screen.width', screen.width);	h += addRenderInfo('screen.height', screen.height);	h += addRenderInfo('screen.availWidth', screen.availWidth);	h += addRenderInfo('screen.availHeight', screen.availHeight);	h += addRenderInfo('screen.colorDepth', screen.colorDepth);	h += addRenderInfo('screen.pixelDepth', screen.pixelDepth, 'bspec');	h += addRenderInfo('document.contentType', document.contentType, 'bspec');	h += '</table>';	h += '<h2>TinyMCE_Engine info:</h2>';	h += '<table border="0" cellpadding="0" cellspacing="0" class="data">';	h += addRenderInfo('baseURL', tinyMCE.baseURL);	h += addRenderInfo('selectedInstance.editorId', tinyMCE.selectedInstance ? tinyMCE.selectedInstance.editorId : null);	h += addRenderInfo('selectedElement.nodeName', tinyMCE.selectedElement ? tinyMCE.selectedElement.nodeName : null, 'dep');	h += addRenderInfo('isMSIE', tinyMCE.isMSIE);	h += addRenderInfo('isMSIE5', tinyMCE.isMSIE5);	h += addRenderInfo('isMSIE5_0', tinyMCE.isMSIE5_0);	h += addRenderInfo('isMSIE7', tinyMCE.isMSIE7);	h += addRenderInfo('isGecko', tinyMCE.isGecko);	h += addRenderInfo('isSafari', tinyMCE.isSafari);	h += addRenderInfo('isOpera', tinyMCE.isOpera);	h += addRenderInfo('isMac', tinyMCE.isMac);	h += addRenderInfo('isNS7', tinyMCE.isNS7);	h += addRenderInfo('isNS71', tinyMCE.isNS71);	h += addRenderInfo('idCounter', tinyMCE.idCounter);	h += addRenderInfo('currentConfig', tinyMCE.currentConfig);	h += addRenderInfo('majorVersion', tinyMCE.majorVersion);	h += addRenderInfo('minorVersion', tinyMCE.minorVersion);	h += addRenderInfo('releaseDate', tinyMCE.releaseDate);	h += addRenderInfo('documentBasePath', tinyMCE.documentBasePath);	h += addRenderInfo('documentURL', tinyMCE.documentURL);	h += '</table>';	for (n in tinyMCE.instances) {		inst = tinyMCE.instances[n];		if (!tinyMCE.isInstance(inst))			continue;		sel = inst.selection.getSel();		rng = inst.selection.getRng();		h += '<h2>TinyMCE_Control id: ' + inst.editorId + '</h2>';		h += '<table border="0" cellpadding="0" cellspacing="0" class="data">';		h += addRenderInfo('editorId', inst.editorId);		h += addRenderInfo('visualAid', inst.visualAid);		h += addRenderInfo('foreColor', inst.foreColor);		h += addRenderInfo('backColor', inst.backColor);		h += addRenderInfo('formTargetElementId', inst.formTargetElementId);		h += addRenderInfo('linkElement', inst.linkElement ? inst.linkElement.nodeName : null, 'dep');		h += addRenderInfo('imgElement', inst.imgElement ? inst.imgElement.nodeName : null, 'dep');		h += addRenderInfo('selectedNode', inst.selectedNode ? inst.selectedNode.nodeName : null, 'dep');		h += addRenderInfo('getBody().nodeName', inst.getBody() ? inst.getBody().nodeName : null);		h += addRenderInfo('getBody().getAttribute("id")', inst.getBody() ? inst.getBody().getAttribute("id") : null);		h += addRenderInfo('getDoc().location', inst.getDoc() ? inst.getDoc().location : null);		h += addRenderInfo('formTargetElementId', inst.formTargetElementId);		h += addRenderInfo('startContent', inst.startContent);		h += addRenderInfo('isHidden()', inst.isHidden());		h += addRenderInfo('isDirty()', inst.isDirty());		h += addRenderInfo('undoRedo.undoLevels.length', inst.undoRedo.undoLevels.length);		h += addRenderInfo('undoRedo.undoIndex', inst.undoRedo.undoIndex);		h += addRenderInfo('selection.getSelectedHTML()', inst.selection.getSelectedHTML());		h += addRenderInfo('selection.getSelectedText()', inst.selection.getSelectedText());		h += addRenderInfo('selection.getFocusElement().nodeName', inst.selection.getFocusElement().nodeName);		if ((tinyMCE.isGecko || tinyMCE.isOpera) && sel && rng) {			h += addRenderInfo('selection.getSel().anchorNode.nodeName', sel.anchorNode.nodeName, 'bspec');			h += addRenderInfo('selection.getSel().anchorOffset', sel.anchorOffset, 'bspec');			h += addRenderInfo('selection.getSel().focusNode.nodeName', sel.focusNode.nodeName, 'bspec');			h += addRenderInfo('selection.getSel().focusOffset', sel.focusOffset, 'bspec');			h += addRenderInfo('selection.getRng().startContainer.nodeName', rng.startContainer.nodeName, 'bspec');			h += addRenderInfo('selection.getRng().startOffset', rng.startOffset, 'bspec');			h += addRenderInfo('selection.getRng().endContainer.nodeName', rng.endContainer.nodeName, 'bspec');			h += addRenderInfo('selection.getRng().endOffset', rng.endOffset, 'bspec');		}		if (tinyMCE.isMSIE) {			if (!rng.item) {				h += addRenderInfo('selection.getSel().type', sel.type, 'bspec');				h += addRenderInfo('selection.getRng().htmlText', rng.htmlText, 'bspec');				h += addRenderInfo('selection.getRng().text', rng.text, 'bspec');			} else				h += addRenderInfo('selection.getRng().item(0).nodeName', rng.item(0).nodeName, 'bspec');		}		h += '</table>';	}	h += '<p>Fields marked in <strong class="bspec">gray</strong> is not cross browser and should be used with care.</p>';	h += '<p>Fields marked <strong class="dep">red</strong> are marked deprecated and will be removed in the future.</p><br />';	se.innerHTML = h;}
meta: 2801	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2801/70f4f8d7ca5fa131dfc1f6a44dca3a8fdaa52e94/devkit.js/buggy/jscripts/tiny_mce/plugins/devkit/jscripts/devkit.js