rem: var splitter = document.getElementById("gray_horizontal_splitter"); var engineURI = aNode.getAttribute("id"); if (engineURI == "allEngines") { resultsTree.setAttribute("style", "display: table;"); splitter.setAttribute("style","display: block;"); contentArea.setAttribute("style", "height: 100; width: 100%;"); 
add: var splitter = document.getElementById("results-splitter"); var engineURI = aNode.id; if (engineURI == "allEngines") { resultsTree.removeAttribute("hidden"); splitter.removeAttribute("hidden"); 
context: function doEngineClick( event, aNode ){	if (event.button != 1)		return(false);	var html = null;	var resultsTree = document.getElementById("internetresultstree");	var contentArea = document.getElementById("content");	var splitter = document.getElementById("gray_horizontal_splitter");	var engineURI = aNode.getAttribute("id");	if (engineURI == "allEngines")	{		resultsTree.setAttribute("style", "display: table;");		splitter.setAttribute("style","display: block;");		contentArea.setAttribute("style", "height: 100; width: 100%;");	}	else	{		resultsTree.setAttribute("style", "display: none;");		splitter.setAttribute("style","display: none");		try		{			var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();			if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);			if (rdf)			{				var internetSearchStore = rdf.GetDataSource("rdf:internetsearch");				if (internetSearchStore)				{					var src = rdf.GetResource(engineURI, true);					var htmlProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#HTML", true);					html = internetSearchStore.GetTarget(src, htmlProperty, true);					if ( html )	html = html.QueryInterface(Components.interfaces.nsIRDFLiteral);					if ( html )	html = html.Value;				}			}		}		catch(ex)		{		}	}	if ( html )	{		var doc = window.frames[0].document;		if (doc)		{    		doc.open("text/html", "replace");	    	doc.writeln( html );		    doc.close();		}	}	else	{		window.frames[0].document.location = "chrome://communicator/locale/search/default.htm";	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/912e3ab7803f2d4e3b2c479dacf80418a5c64ea6/internetresults.js/buggy/xpfe/components/search/resources/internetresults.js