rem: var treeChildren = document.getElementById('addressList'); 
add: var treeChildren = document.getElementById('addressWidgetBody'); 
context: function OnLoadEditList(){  //XXX: gAddressBookBundle is set in 2 places because of different callers  gAddressBookBundle = document.getElementById("bundle_addressBook");  gParentURI  = window.arguments[0].abURI;  gListCard = window.arguments[0].abCard;  var listUri  = window.arguments[0].listURI;  gOkCallback = window.arguments[0].okCallback;  gEditList = GetDirectoryFromURI(listUri);  document.getElementById('ListName').value = gEditList.dirName;  document.getElementById('ListNickName').value = gEditList.listNickName;  document.getElementById('ListDescription').value = gEditList.description;  oldListName = gEditList.dirName;  if (gEditList.addressLists)  {    var total = gEditList.addressLists.Count();    if (total)    {      var treeChildren = document.getElementById('addressList');      var newTreeChildrenNode = treeChildren.cloneNode(false);      var templateNode = treeChildren.firstChild;      top.MAX_RECIPIENTS = 0;      for ( var i = 0;  i < total; i++ )      {        var card = gEditList.addressLists.GetElementAt(i);        card = card.QueryInterface(Components.interfaces.nsIAbCard);        var address;        if (card.displayName)          address = card.displayName + " <" + card.primaryEmail + ">";        else          address = card.primaryEmail;        SetInputValue(address, newTreeChildrenNode, templateNode);      }      var parent = treeChildren.parentNode;      parent.replaceChild(newTreeChildrenNode, treeChildren);    }  }  AppendnewRowAndSetFocus();  // focus on first name  var listName = document.getElementById('ListName');  if ( listName )    listName.focus();  moveToAlertPosition();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/35d10f6565b44924be70fc49e990defd206ffc48/abMailListDialog.js/buggy/mailnews/addrbook/resources/content/abMailListDialog.js