rem: if( node.nodeType == 1 ) { if( 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; return true; } else if( ! node.nodeName.match( /button|select|textarea/i ) ) {  if( ! node.childNodes.length ) return; for( var i = ( node.childNodes.length - 1 ); i >= 0; i-- ) if( resetHighlight( node.childNodes[i] ) ) for( ; i >= node.childNodes.length; i-- ) ; } 
add: if( node.nodeType == 1 ) { if( 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; return true; } else if( ! node.nodeName.match( /button|select|textarea/i ) ) {  if( ! node.childNodes.length ) return; for( var i = ( node.childNodes.length - 1 ); i >= 0; i-- ) if( resetHighlight( node.childNodes[i] ) ) for( ; i >= node.childNodes.length; i-- ) ; 
context: 		function resetHighlight(node) {			if( node.nodeType == 1 ) {				if( 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; // this will merge text nodes					return true;				} else if( ! node.nodeName.match( /button|select|textarea/i ) ) {					// Recurse into child nodes					if( ! node.childNodes.length ) return;					for( var i = ( node.childNodes.length - 1 ); i >= 0; i-- )						if( resetHighlight( node.childNodes[i] ) )							for( ; i >= node.childNodes.length; i-- ) ;				}			}			return false;		}
meta: 7556	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7556/6f8e3b5d230018d8e3caaa76bb51b5222f1c2702/default.js/buggy/Resources/default.js