rem: checkbox.setAttribute("checked", "1"); 
context: function loadEngines( aCategory ){  var rdf = Components.classes["component://netscape/rdf/rdf-service"].getService();  if (rdf)   rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);  if (rdf)  {  	var localStore = rdf.GetDataSource("rdf:local-store");  	if (localStore)  	{  		var treeNode = document.getElementById("searchengines");  		var numChildren = treeNode.childNodes.length;  		for (var x = 0; x<numChildren; x++)  		{  			if (treeNode.childNodes[x].tagName == "treechildren")  			{  				var treeChildrenNode = treeNode.childNodes[x];  				break;  			}  		}  		if( treeChildrenNode )  		{  			var numEngines = treeChildrenNode.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 treeItem = treeChildrenNode.childNodes[x];  				if (!treeItem)	continue;  				var engineURI = treeItem.getAttribute("id");  				var engineSRC = rdf.GetResource( engineURI, true );  				var hasAssertion = localStore.HasAssertion( categorySRC, checkedProperty, engineSRC, true );          var checkbox = treeItem.firstChild.firstChild.firstChild;//          dump("*** hasAssertion = " + hasAssertion + "\n");  				if ( hasAssertion )  				{  					checkbox.checked = true;  					checkbox.setAttribute("checked", "1");  				}  			}  		}  	}  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/398c12797945c3065589a1bc718e693a4636aba5/search-panel.js/clean/xpfe/components/search/resources/search-panel.js