mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -1,9 +1,22 @@
|
|||
// Up-to-date as of 2013-04-07.
|
||||
var inputModeKeywords = [
|
||||
"verbatim",
|
||||
"latin",
|
||||
"latin-name",
|
||||
"latin-prose",
|
||||
"full-width-latin",
|
||||
"kana",
|
||||
"kana-name",
|
||||
"katakana",
|
||||
"numeric",
|
||||
"tel",
|
||||
"email",
|
||||
"url",
|
||||
];
|
||||
var formElements = {
|
||||
form: {
|
||||
acceptCharset: {type: "string", domAttrName: "accept-charset"},
|
||||
// TODO: action is special
|
||||
// action: "url",
|
||||
// "action" has magic hard-coded in reflection.js
|
||||
action: "url",
|
||||
autocomplete: {type: "enum", keywords: ["on", "off"], defaultVal: "on"},
|
||||
enctype: {type: "enum", keywords: ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], defaultVal: "application/x-www-form-urlencoded"},
|
||||
encoding: {type: "enum", keywords: ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], defaultVal: "application/x-www-form-urlencoded", domAttrName: "enctype"},
|
||||
|
@ -27,41 +40,39 @@ var formElements = {
|
|||
// Conforming
|
||||
accept: "string",
|
||||
alt: "string",
|
||||
// TODO: autocomplete is special.
|
||||
// autocomplete: {type: "enum", keywords: ["on", "off"], defaultVal: "on"},
|
||||
autocomplete: {type: "string", customGetter: true},
|
||||
autofocus: "boolean",
|
||||
defaultChecked: {type: "boolean", domAttrName: "checked"},
|
||||
dirName: "string",
|
||||
disabled: "boolean",
|
||||
// TODO: formAction is special
|
||||
// formAction: "url",
|
||||
// "formAction" has magic hard-coded in reflection.js
|
||||
formAction: "url",
|
||||
formEnctype: {type: "enum", keywords: ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], invalidVal: "application/x-www-form-urlencoded"},
|
||||
formMethod: {type: "enum", keywords: ["get", "post"], invalidVal: "get"},
|
||||
formNoValidate: "boolean",
|
||||
formTarget: "string",
|
||||
//TODO: only reflected on setting
|
||||
//height: "unsigned long",
|
||||
inputMode: {type: "enum", keywords: ["verbatim", "latin", "latin-name", "latin-prose", "full-width-latin", "kana", "katakana", "numeric", "tel", "email", "url"]},
|
||||
height: {type: "unsigned long", customGetter: true},
|
||||
inputMode: {type: "enum", keywords: inputModeKeywords},
|
||||
max: "string",
|
||||
maxLength: "limited long",
|
||||
min: "string",
|
||||
minLength: "limited long",
|
||||
multiple: "boolean",
|
||||
name: "string",
|
||||
pattern: "string",
|
||||
placeholder: "string",
|
||||
readOnly: "boolean",
|
||||
required: "boolean",
|
||||
// https://html.spec.whatwg.org/multipage/#attr-input-size
|
||||
// https://html.spec.whatwg.org/#attr-input-size
|
||||
size: {type: "limited unsigned long", defaultVal: 20},
|
||||
src: "url",
|
||||
step: "string",
|
||||
type: {type: "enum", keywords: ["hidden", "text", "search", "tel",
|
||||
"url", "email", "password", "datetime", "date", "month", "week",
|
||||
"url", "email", "password", "date", "month", "week",
|
||||
"time", "datetime-local", "number", "range", "color", "checkbox",
|
||||
"radio", "file", "submit", "image", "reset", "button"], defaultVal:
|
||||
"text"},
|
||||
//TODO: only reflected on setting
|
||||
//width: "unsigned long",
|
||||
width: {type: "unsigned long", customGetter: true},
|
||||
defaultValue: {type: "string", domAttrName: "value"},
|
||||
|
||||
// Obsolete
|
||||
|
@ -71,8 +82,8 @@ var formElements = {
|
|||
button: {
|
||||
autofocus: "boolean",
|
||||
disabled: "boolean",
|
||||
// TODO: formAction is special
|
||||
// formAction: "url",
|
||||
// "formAction" has magic hard-coded in reflection.js
|
||||
formAction: "url",
|
||||
formEnctype: {type: "enum", keywords: ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], invalidVal: "application/x-www-form-urlencoded"},
|
||||
formMethod: {type: "enum", keywords: ["get", "post", "dialog"], invalidVal: "get"},
|
||||
formNoValidate: "boolean",
|
||||
|
@ -82,6 +93,7 @@ var formElements = {
|
|||
value: "string"
|
||||
},
|
||||
select: {
|
||||
autocomplete: {type: "string", customGetter: true},
|
||||
autofocus: "boolean",
|
||||
disabled: "boolean",
|
||||
multiple: "boolean",
|
||||
|
@ -101,14 +113,14 @@ var formElements = {
|
|||
value: {type: "string", customGetter: true},
|
||||
},
|
||||
textarea: {
|
||||
// TODO: autocomplete is special.
|
||||
// autocomplete: {type: "enum", keywords: ["on", "off"], defaultVal: "on"},
|
||||
autocomplete: {type: "string", customGetter: true},
|
||||
autofocus: "boolean",
|
||||
cols: {type: "limited unsigned long with fallback", defaultVal: 20},
|
||||
dirName: "string",
|
||||
disabled: "boolean",
|
||||
inputMode: {type: "enum", keywords: ["verbatim", "latin", "latin-name", "latin-prose", "full-width-latin", "kana", "katakana", "numeric", "tel", "email", "url"]},
|
||||
inputMode: {type: "enum", keywords: inputModeKeywords},
|
||||
maxLength: "limited long",
|
||||
minLength: "limited long",
|
||||
name: "string",
|
||||
placeholder: "string",
|
||||
readOnly: "boolean",
|
||||
|
@ -116,19 +128,6 @@ var formElements = {
|
|||
rows: {type: "limited unsigned long with fallback", defaultVal: 2},
|
||||
wrap: "string",
|
||||
},
|
||||
keygen: {
|
||||
autofocus: "boolean",
|
||||
challenge: "string",
|
||||
disabled: "boolean",
|
||||
// The invalid value default is the "unknown" state, which for our
|
||||
// purposes seems to be the same as having no invalid value default.
|
||||
// The missing value default depends on whether "rsa" is implemented,
|
||||
// so we use null, which is magically reserved for "don't try testing
|
||||
// this", since no one default is required. (TODO: we could test that
|
||||
// it's either the RSA state or the unknown state.)
|
||||
keytype: {type: "enum", keywords: ["rsa"], defaultVal: null},
|
||||
name: "string",
|
||||
},
|
||||
output: {
|
||||
htmlFor: {type: "settable tokenlist", domAttrName: "for" },
|
||||
name: "string",
|
||||
|
@ -136,7 +135,14 @@ var formElements = {
|
|||
progress: {
|
||||
max: {type: "limited double", defaultVal: 1.0},
|
||||
},
|
||||
meter: {},
|
||||
meter: {
|
||||
value: {type: "double", customGetter: true},
|
||||
min: {type: "double", customGetter: true},
|
||||
max: {type: "double", customGetter: true},
|
||||
low: {type: "double", customGetter: true},
|
||||
high: {type: "double", customGetter: true},
|
||||
optimum: {type: "double", customGetter: true},
|
||||
},
|
||||
};
|
||||
|
||||
mergeElements(formElements);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue