Bug 1562314 - Follow-up: Check for type number explicitly. r=me DONTBUILD
authorJorg K <jorgk@jorgk.com>
Sun, 30 Jun 2019 07:38:00 +0200
changeset 35985 7302ce3d1e789d0493735a41662a44a8adc4e274
parent 35984 b7fc532744f4cbca9c88d55a7c14d6fce446bed2
child 35986 3d07be225714b6ec9ed4ac7704f66cd4a4d026d9
push id392
push userclokep@gmail.com
push dateMon, 02 Sep 2019 20:17:19 +0000
reviewersme
bugs1562314
Bug 1562314 - Follow-up: Check for type number explicitly. r=me DONTBUILD
mail/components/im/content/imAccountWizard.js
--- a/mail/components/im/content/imAccountWizard.js
+++ b/mail/components/im/content/imAccountWizard.js
@@ -358,17 +358,18 @@ var accountWizard = {
 
     return true;
   },
 
   getValue(aId) {
     var elt = document.getElementById(aId);
     if ("selectedItem" in elt)
       return elt.selectedItem.value;
-    if ((elt.getAttribute("type") == "checkbox") && ("checked" in elt))
+    // Strangely for <input type="number"> "checked" is also set.
+    if ((elt.getAttribute("type") != "number") && ("checked" in elt))
       return elt.checked;
     if ("value" in elt)
       return elt.value;
     // If the groupbox has never been opened, the binding isn't attached
     // so the attributes don't exist. The calling code in showSummary
     // has a special handling of the undefined value for this case.
     return undefined;
   },