Bug 824148 - [KEYBOARD] Input type=range should bring up the number keyboard. r=ttaubert
authorMargaret Leibovic <margaret.leibovic@gmail.com>
Thu, 10 Jan 2013 13:25:30 +0100
changeset 118395 1b985a8224a08ea77db7cb96b1206f835bc82b13
parent 118394 a051840bec181e5487c4363eaf2cab52040ddbd5
child 118396 a200bde120579e9008cf349d98d227678317eb91
push id24166
push userMs2ger@gmail.com
push dateFri, 11 Jan 2013 13:57:41 +0000
treeherdermozilla-central@63c4b0f66a0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersttaubert
bugs824148
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 824148 - [KEYBOARD] Input type=range should bring up the number keyboard. r=ttaubert
b2g/chrome/content/forms.js
--- a/b2g/chrome/content/forms.js
+++ b/b2g/chrome/content/forms.js
@@ -450,25 +450,26 @@ function getJSON(element) {
   let value = element.value || ""
 
   // Treat contenteditble element as a special text field
   if (isContentEditable(element)) {
     type = "text";
     value = element.textContent;
   }
 
-  // Until the input type=date/datetime/time have been implemented
+  // Until the input type=date/datetime/range have been implemented
   // let's return their real type even if the platform returns 'text'
   let attributeType = element.getAttribute("type") || "";
 
   if (attributeType) {
     var typeLowerCase = attributeType.toLowerCase(); 
     switch (typeLowerCase) {
       case "datetime":
       case "datetime-local":
+      case "range":
         type = typeLowerCase;
         break;
     }
   }
 
   // Gecko has some support for @inputmode but behind a preference and
   // it is disabled by default.
   // Gaia is then using @x-inputmode has its proprietary way to set