rem: list.removeChild(list.firstChild); 
add: list.removeItemAt(list.childNodes.length - 1); 
context: function ClearAttachmentList() {   // clear selection  var list = document.getElementById('attachmentList');  list.clearSelection();  while (list.childNodes.length)     list.removeChild(list.firstChild);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/5213c89d42978aeb2bdc9f03b288f640f3b87ed8/msgHdrViewOverlay.js/clean/mailnews/base/resources/content/msgHdrViewOverlay.js