rem: } if (type == "radiogroup" || type=="menulist") { return formElement.selectedItem.value; 
context: function getFormElementValue(formElement) {  try {    var type = formElement.localName;    if (type=="checkbox") {      if (formElement.getAttribute("reversed"))        return !formElement.checked;      return formElement.checked;    }    if (type == "radiogroup" || type=="menulist") {      return formElement.selectedItem.value;    }    if (type == "textbox" &&        formElement.getAttribute("datatype") == "nsIFileSpec") {      if (formElement.value) {        var filespec = Components.classes["@mozilla.org/filespec;1"].createInstance(Components.interfaces.nsIFileSpec);        filespec.unicodePath = formElement.value;        return filespec;      }      return null;    }    if (type == "textbox" &&        formElement.getAttribute("datatype") == "nsILocalFile") {      if (formElement.value) {        var localfile = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);        localfile.initWithPath(formElement.value);        return localfile;      }      return null;    }    if (type == "text") {      var val = formElement.getAttribute("value");      if (val) return val;      return null;    }    if ("value" in formElement) {      return formElement.value;    }    return null;  }  catch (ex) {    dump("getFormElementValue failed, ex="+ex+"\n");  }  return null;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/1f549409472a871d1b1a222a3dca1f42c5fa73ce/AccountManager.js/clean/mailnews/base/prefs/resources/content/AccountManager.js