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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4cba32786bcfe8ed3d92ee412e77e5d20b45181e/msgHdrViewOverlay.js/clean/mail/base/content/msgHdrViewOverlay.js