rem: var treeitemNode = engineBox.childNodes[x]; var engineURI = treeitemNode.getAttribute("id"); var engineSRC = rdf.GetResource(engineURI, true);  var checkboxNode = treeitemNode.firstChild.firstChild.firstChild; if (checkboxNode) { 
add: var listitemNode = engineBox.childNodes[x]; if (listitemNode.localName == "listitem") { var engineURI = listitemNode.getAttribute("id"); var engineSRC = rdf.GetResource(engineURI, true);  
context: function loadEngines(aCategory){  var rdf = Components.classes[RDFSERVICE_CONTRACTID].getService(nsIRDFService);  var localStore = rdf.GetDataSource("rdf:local-store");  if (localStore) {    var engineBox = document.getElementById("engineKids");    var numEngines = engineBox.childNodes.length;    var checkedProperty = rdf.GetResource("http://home.netscape.com/NC-rdf#checked", true);    var categorySRC = rdf.GetResource(aCategory, true);    for (var x = 0; x < numEngines; ++x) {      var treeitemNode = engineBox.childNodes[x];      var engineURI = treeitemNode.getAttribute("id");      var engineSRC = rdf.GetResource(engineURI, true);      var checkboxNode = treeitemNode.firstChild.firstChild.firstChild;      if (checkboxNode) {        var hasAssertion = localStore.HasAssertion(categorySRC, checkedProperty, engineSRC, true);        if (hasAssertion)          checkboxNode.checked = true;      }    }  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/search-panel.js/buggy/xpfe/components/search/resources/search-panel.js