rem: if( node.nodeType == 3 ) { if( node.parentNode.className == "searchHighlight" ) { var text = node.nodeValue; var newNode = document.createTextNode( text ); var par = node.parentNode.parentNode; node.parentNode.parentNode.replaceChild( newNode, node.parentNode ); par.innerHTML = par.innerHTML; return true; } 
add: if( node.nodeType == 1 && node.className == "searchHighlight" ) { var text = node.firstChild.nodeValue; var newNode = document.createTextNode( text ); var par = node.parentNode; node.parentNode.replaceChild( newNode, node ); par.innerHTML = par.innerHTML; 
context: function resetSearchHighlight( id ) {	var div = document.getElementById( id );	if( ! div ) div = document.getElementsByTagName( "body" ).item(0);	function resetHighlight(node) {		if( node.nodeType == 3 ) { // Node.TEXT_NODE			if( node.parentNode.className == "searchHighlight" ) {				var text = node.nodeValue;				var newNode = document.createTextNode( text );				var par = node.parentNode.parentNode;				node.parentNode.parentNode.replaceChild( newNode, node.parentNode );				par.innerHTML = par.innerHTML; // this will merge text nodes				return true;			}		} else if( ! node.nodeName.match( /button|select|textarea/i ) ) {			// Recurse into child nodes			for( var i = 0; i < node.childNodes.length; i++ ) {				if( resetHighlight( node.childNodes[i] ) ) i++;			}		}		return false;	}	resetHighlight( div );}
meta: 7556	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7556/da5cc19295be499272c5e70841730b67891fc661/default.js/clean/Resources/default.js