Bug 780857 - Enable the pref to use the experimental forms by default in b2g r=mounir

This commit is contained in:
Raphael Catolino 2012-08-08 21:46:38 +02:00
parent e006b07013
commit fa05342698
2 changed files with 6 additions and 3 deletions

View File

@ -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);

View File

@ -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 <input type=date>
// Related to Bug 777279 - Implement <input type=time>
let attributeType = element.getAttribute("type") || "";
if (attributeType) {
var typeLowerCase = attributeType.toLowerCase();
switch (typeLowerCase) {
case "number":
case "date":
case "time":
case "datetime":