rem: checkCell.setAttribute("checked", "true"); menuitem.setAttribute("checked", "true"); 
add: checkCell.checked = true; menuitem.checked = true; 
context: function FillSiteList(){  ClearTreelist(gDialog.SiteList);  gDefaultSiteIndex = -1;  // Fill the site lists  var count = gPublishSiteData.length;  var i;  for (i = 0; i < count; i++)  {    var name = gPublishSiteData[i][gNameIndex];    var menuitem = AppendStringToTreelist(gDialog.SiteList, name);    // Add a cell before the text to display a check for default site    if (menuitem)    {      var checkCell = document.createElementNS(XUL_NS, "treecell");      checkCell.setAttribute("class", "treecell-check");      // Insert tree cell before the one created by AppendStringToTreelist():      //   (menuitem=treeitem) -> treerow -> treecell      menuitem.firstChild.insertBefore(checkCell, menuitem.firstChild.firstChild);            // Show checkmark in front of default site      if (name == gDefaultSiteName)      {        gDefaultSiteIndex = i;dump(" *** Setting checked style on tree item\n");        checkCell.setAttribute("checked", "true");        menuitem.setAttribute("checked", "true");      }    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/39c9942b8ce1ac7539a96c0525b1a84fba6a448d/EditorPublishSettings.js/clean/editor/ui/dialogs/content/EditorPublishSettings.js