rem: var item = document.createElement("titledbutton"); 
add: var item = document.createElement("mail-emailaddress"); var itemInDocument; 
context: function InsertEmailAddressUnderEnclosingBox(parentBox, parentDiv, emailAddress, fullAddress) {  if ( parentBox )   {     var item = document.createElement("titledbutton");    if ( item && parentDiv)     {       item.setAttribute("class", "emailDisplayButton");      item.setAttribute("value", fullAddress);       if (parentDiv.childNodes.length)      {        var child = parentDiv.childNodes[parentDiv.childNodes.length - 1];         if (parentDiv.childNodes.length > 1)        {          var textNode = document.createElement("text");          textNode.setAttribute("value", ", ");          parentDiv.insertBefore(textNode, child);               }        parentDiv.insertBefore(item, child);      }      else       parentDiv.appendChild(item);            item.setAttribute("class", "emailDisplayButton");      item.setAttribute("popup", "emailAddressPopup");      item.setAttribute("value", fullAddress);            item.setAttribute("emailAddress", emailAddress);      item.setAttribute("fullAddress", fullAddress);        AddExtraAddressProcessing(emailAddress, item);      hdrViewSetVisible(parentBox, true);    }   } }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/66a169ecde9845865fdc6cabf005cc4223ee6bea/msgHdrViewOverlay.js/clean/mailnews/base/resources/content/msgHdrViewOverlay.js