rem: while (list.childNodes.length) list.removeChild(list.firstChild); 
add: while (list.hasChildNodes()) list.removeChild(list.lastChild); 
context: function ClearAttachmentList() {   // clear selection  var list = document.getElementById('attachmentList');  while (list.childNodes.length)     list.removeChild(list.firstChild);}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/26cdb24398282987c2afbd83349e8203022ac384/msgHdrViewOverlay.js/clean/mail/base/content/msgHdrViewOverlay.js