rem: checkboxNode.checked = true; 
add: listitemNode.checked = 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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/a376ddc0531725ad80728692bef9c8ab8b17636c/search-panel.js/buggy/suite/common/search/search-panel.js