rem:    input[0].value = ""; 
context: function awAppendNewRow(setFocus){  var listbox = document.getElementById('addressingWidget');  var listitem1 = awGetListItem(1);  if ( listbox && listitem1 )  {    var lastRecipientType = awGetPopupElement(top.MAX_RECIPIENTS).selectedItem.getAttribute("value");    var nextDummy = awGetNextDummyRow();    var newNode = listitem1.cloneNode(true);    if (nextDummy)      listbox.replaceChild(newNode, nextDummy);    else      listbox.appendChild(newNode);    top.MAX_RECIPIENTS++;    var input = newNode.getElementsByTagName(awInputElementName());    if ( input && input.length == 1 )    {      input[0].setAttribute("value", "");      // XXX TODO      // band-aid for bug #190153 which was caused by a      // band-aid for #90337      input[0].value = "";      input[0].setAttribute("id", "addressCol2#" + top.MAX_RECIPIENTS);          //this copies the autocomplete sessions list from recipient#1       input[0].syncSessions(document.getElementById('addressCol2#1'));  	  // also clone the showCommentColumn setting  	  //  	  input[0].showCommentColumn = 	      document.getElementById("addressCol2#1").showCommentColumn;      // We always clone the first row.  The problem is that the first row      // could be focused.  When we clone that row, we end up with a cloned      // XUL textbox that has a focused attribute set.  Therefore we think      // we're focused and don't properly refocus.  The best solution to this      // would be to clone a template row that didn't really have any presentation,      // rather than using the real visible first row of the listbox.      //      // For now we'll just put in a hack that ensures the focused attribute      // is never copied when the node is cloned.      if (input[0].getAttribute('focused') != '')        input[0].removeAttribute('focused');    }    var select = newNode.getElementsByTagName(awSelectElementName());    if ( select && select.length == 1 )    {      select[0].selectedItem = select[0].childNodes[0].childNodes[awGetSelectItemIndex(lastRecipientType)];      select[0].setAttribute("id", "addressCol1#" + top.MAX_RECIPIENTS);      if (input)        _awSetAutoComplete(select[0], input[0]);    }    // focus on new input widget    if (setFocus && input[0] )      awSetFocus(top.MAX_RECIPIENTS, input[0]);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/1a75eef0fd6d00a1cfb8f538bba27e24aea2fc4a/addressingWidgetOverlay.js/clean/mailnews/compose/resources/content/addressingWidgetOverlay.js