rem: this.listElement.appendChild(popupNode); 
context:     appendPrinterNames:       function (aDataObject)         {           var popupNode = document.createElement("menupopup");           var strDefaultPrinterName = "";          var printerName;          // build popup menu from printer names          while (aDataObject.hasMoreElements()) {            printerName = aDataObject.getNext();            printerName = printerName.QueryInterface(Components.interfaces.nsISupportsString);            var printerNameStr = printerName.toString();            if (strDefaultPrinterName == "")               strDefaultPrinterName = printerNameStr;            var itemNode = document.createElement("menuitem");            itemNode.setAttribute("value", printerNameStr);            itemNode.setAttribute("label", printerNameStr);            popupNode.appendChild(itemNode);          }          if (strDefaultPrinterName != "") {            this.listElement.removeAttribute("disabled");          } else {            var stringBundle = srGetStrBundle("chrome://global/locale/printing.properties");            this.listElement.setAttribute("value", strDefaultPrinterName);            this.listElement.setAttribute("label", stringBundle.GetStringFromName("noprinter"));            // disable dialog            this.listElement.setAttribute("disabled", "true");            dialog.destGroup.setAttribute("disabled","true");            dialog.printerRadio.setAttribute("disabled","true");            dialog.printerLabel.setAttribute("disabled","true");            dialog.propertiesButton.setAttribute("disabled","true");            dialog.fileRadio.setAttribute("disabled","true");            dialog.printButton.setAttribute("disabled","true");            doEnablePrintToFile(false);          }          this.listElement.appendChild(popupNode);           return strDefaultPrinterName;        } 
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/05905338da1ce5abecfb7bbced6330990a55c0c7/printdialog.js/clean/xpfe/global/resources/content/printdialog.js