rem: this.listElement.removeChild(this.listElement.firstChild); 
add: var popup = this.listElement.firstChild; if (popup) { this.listElement.removeChild(popup); } 
context:     clearList:      function ()        {          // remove the menupopup node child of the menulist.          this.listElement.removeChild(this.listElement.firstChild);        },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/a2afb458636c1e10e8da90ac39d264b7e9d656b7/printdialog.js/buggy/toolkit/components/printing/content/printdialog.js