rem: var checkbox = engineBox.childNodes[x]; if( !checkbox ) continue; var engineURI = checkbox.getAttribute("id"); 
add: var treeitemNode = engineBox.childNodes[x]; var engineURI = treeitemNode.getAttribute("id"); 
context: function saveEngines(){	var categoryList = document.getElementById("categoryList");	var category = categoryList.selectedItem.getAttribute("id");	if( category )	{		category = "NC:SearchCategory?category=" + category;	}	else	{		category = "NC:SearchEngineRoot";	}    var rdf = Components.classes[RDFSERVICE_PROGID].getService(nsIRDFService);	if (rdf)	{		var localStore = rdf.GetDataSource("rdf:local-store");		if( !localStore )	return(false);   	var engineBox = document.getElementById("searchengines");    if( !engineBox )      return false;    var checkedProperty = rdf.GetResource( "http://home.netscape.com/NC-rdf#checked", true );    var categorySRC = rdf.GetResource( category, true );    for (var x = 0; x < engineBox.childNodes.length; x++)    {      var checkbox = engineBox.childNodes[x];      if( !checkbox )      	continue;      var engineURI = checkbox.getAttribute("id");      var engineSRC = rdf.GetResource(engineURI, true);      if( checkbox.checked == true || checkbox.checked == "true")        localStore.Assert( categorySRC, checkedProperty, engineSRC, true );      else        localStore.Unassert( categorySRC, checkedProperty, engineSRC, true );    }	// save changes; flush out the localstore	try	{        var flushableStore = localStore.QueryInterface(nsIRDFRemoteDataSource);		if (flushableStore)	flushableStore.Flush();	}	catch(ex)	{	}  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/f35042debfeb638e916315465f0e57a709bb3c36/search-panel.js/buggy/xpfe/components/search/resources/search-panel.js