rem: while (list.childNodes.length) list.removeItemAt(list.childNodes.length - 1); 
add: while (list.hasChildNodes()) list.removeChild(list.lastChild); 
context: function ClearAttachmentList() {   // we also have to disable the File/Attachments menuitem  node = document.getElementById("fileAttachmentMenu");  if (node)    node.setAttribute("disabled", "true");  // clear selection  var list = document.getElementById('attachmentList');  list.clearSelection();  while (list.childNodes.length)     list.removeItemAt(list.childNodes.length - 1);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/7435eb0f18e7571d49dc93ae0f70684cd1a6a86f/msgHdrViewOverlay.js/clean/mailnews/base/resources/content/msgHdrViewOverlay.js