rem: var child = parentDiv.childNodes[parentDiv.childNodes.length - 1]; 
add: var child = parentDiv.childNodes[parentDiv.childNodes.length - 1]; 
context: function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, includesToggleButton, emailAddress, fullAddress, displayName) {  if ( parentBox )   {     var item = document.createElement("mail-emailaddress");    var itemInDocument;    if ( item && parentDiv)     {       if (parentDiv.childNodes.length)      {        var child = parentDiv.childNodes[parentDiv.childNodes.length - 1];         if (parentDiv.childNodes.length > 1 || (!includesToggleButton && parentDiv.childNodes.length >= 1) )        {          var textNode = document.createElement("text");          textNode.setAttribute("value", ", ");          textNode.setAttribute("class", "emailSeparator");          if (includesToggleButton && numOfEmailsInEnumerator < gNumOfEmailsToShowToggleButtonInFront)            parentDiv.insertBefore(textNode, child);          else            parentDiv.appendChild(textNode);        }        if (includesToggleButton && numOfEmailsInEnumerator < gNumOfEmailsToShowToggleButtonInFront)          itemInDocument = parentDiv.insertBefore(item, child);        else          itemInDocument = parentDiv.appendChild(item);      }      else      {        itemInDocument = parentDiv.appendChild(item);      }      itemInDocument.setAttribute("value", fullAddress);          itemInDocument.setTextAttribute("emailAddress", emailAddress);      itemInDocument.setTextAttribute("fullAddress", fullAddress);        itemInDocument.setTextAttribute("displayName", displayName);              if (this.AddExtraAddressProcessing != undefined)        AddExtraAddressProcessing(emailAddress, itemInDocument);      hdrViewSetVisible(parentBox, true);    }   } }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/0b2dd2b2d2fd037df917e07645fa019a963332a5/msgHdrViewOverlay.js/clean/mailnews/base/resources/content/msgHdrViewOverlay.js