mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 637321 - Fix tests that try to use the 'telephone' input type instead of 'tel'. r=bz a=tests
This commit is contained in:
parent
1f97a78ca8
commit
7bd454cbb0
@ -291,7 +291,7 @@ checkPatternAttribute(input);
|
||||
|
||||
// |validTypes| are the types which accept @pattern
|
||||
// and |invalidTypes| are the ones which do not accept it.
|
||||
var validTypes = Array('text', 'password', 'search', 'telephone', 'email', 'url');
|
||||
var validTypes = Array('text', 'password', 'search', 'tel', 'email', 'url');
|
||||
var barredTypes = Array('hidden', 'reset', 'button', 'submit', 'image');
|
||||
var invalidTypes = Array('checkbox', 'radio', 'file');
|
||||
// TODO: 'datetime', 'date', 'month', 'week', 'time', 'datetime-local',
|
||||
|
@ -25,7 +25,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=549475
|
||||
// And it has no sanitizing algorithm.
|
||||
var inputTypes =
|
||||
[
|
||||
"text", "password", "search", "telephone", "hidden", "checkbox", "radio",
|
||||
"text", "password", "search", "tel", "hidden", "checkbox", "radio",
|
||||
"submit", "image", "reset", "button", "email", "url"
|
||||
];
|
||||
|
||||
@ -37,7 +37,7 @@ var todoTypes =
|
||||
|
||||
var valueModeValue =
|
||||
[
|
||||
"text", "search", "url", "telephone", "email", "password", "date", "datetime",
|
||||
"text", "search", "url", "tel", "email", "password", "date", "datetime",
|
||||
"month", "week", "time", "datetime-local", "number", "range", "color",
|
||||
];
|
||||
|
||||
@ -47,7 +47,7 @@ function sanitizeValue(aType, aValue)
|
||||
case "text":
|
||||
case "password":
|
||||
case "search":
|
||||
case "telephone":
|
||||
case "tel":
|
||||
case "email":
|
||||
return aValue.replace(/[\n\r]/g, "");
|
||||
case "url":
|
||||
|
Loading…
Reference in New Issue
Block a user