From fa053426986ffb6819f5a7ea0e508e3b7fda71a5 Mon Sep 17 00:00:00 2001 From: Raphael Catolino Date: Wed, 8 Aug 2012 21:46:38 +0200 Subject: [PATCH] Bug 780857 - Enable the pref to use the experimental forms by default in b2g r=mounir --- b2g/app/b2g.js | 3 +++ b2g/chrome/content/forms.js | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/b2g/app/b2g.js b/b2g/app/b2g.js index 7e33bcaa1cf..341062b2d98 100644 --- a/b2g/app/b2g.js +++ b/b2g/app/b2g.js @@ -472,6 +472,9 @@ pref("dom.disable_window_print", true); // Disable window.showModalDialog pref("dom.disable_window_showModalDialog", true); +// Enable new experimental html forms +pref("dom.experimental_forms", true); + // Turns on gralloc-based direct texturing for Gonk pref("gfx.gralloc.enabled", false); diff --git a/b2g/chrome/content/forms.js b/b2g/chrome/content/forms.js index 9a33115ead5..f80b4eddc18 100644 --- a/b2g/chrome/content/forms.js +++ b/b2g/chrome/content/forms.js @@ -180,15 +180,15 @@ FormAssistant.init(); function getJSON(element) { let type = element.type || ""; - // FIXME/bug 344616 is input type="number" - // Until then, let's return 'number' even if the platform returns 'text' + // Until the input type=date/datetime/time have been implemented + // let's return their real type even if the platform returns 'text' // Related to Bug 769352 - Implement + // Related to Bug 777279 - Implement let attributeType = element.getAttribute("type") || ""; if (attributeType) { var typeLowerCase = attributeType.toLowerCase(); switch (typeLowerCase) { - case "number": case "date": case "time": case "datetime":