OLD | NEW |
1 // Up-to-date as of 2013-04-07. | 1 // Up-to-date as of 2013-04-07. |
2 var formElements = { | 2 var formElements = { |
3 form: { | 3 form: { |
4 acceptCharset: {type: "string", domAttrName: "accept-charset"}, | 4 acceptCharset: {type: "string", domAttrName: "accept-charset"}, |
5 // TODO: action is special | 5 // TODO: action is special |
6 // action: "url", | 6 // action: "url", |
7 autocomplete: {type: "enum", keywords: ["on", "off"], defaultVal: "on"}, | 7 autocomplete: {type: "enum", keywords: ["on", "off"], defaultVal: "on"}, |
8 enctype: {type: "enum", keywords: ["application/x-www-form-urlencoded", "mul
tipart/form-data", "text/plain"], defaultVal: "application/x-www-form-urlencoded
"}, | 8 enctype: {type: "enum", keywords: ["application/x-www-form-urlencoded", "mul
tipart/form-data", "text/plain"], defaultVal: "application/x-www-form-urlencoded
"}, |
9 encoding: {type: "enum", keywords: ["application/x-www-form-urlencoded", "mu
ltipart/form-data", "text/plain"], defaultVal: "application/x-www-form-urlencode
d", domAttrName: "enctype"}, | 9 encoding: {type: "enum", keywords: ["application/x-www-form-urlencoded", "mu
ltipart/form-data", "text/plain"], defaultVal: "application/x-www-form-urlencode
d", domAttrName: "enctype"}, |
10 method: {type: "enum", keywords: ["get", "post", "dialog"], defaultVal: "get
"}, | 10 method: {type: "enum", keywords: ["get", "post", "dialog"], defaultVal: "get
"}, |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 option: { | 98 option: { |
99 disabled: "boolean", | 99 disabled: "boolean", |
100 label: {type: "string", customGetter: true}, | 100 label: {type: "string", customGetter: true}, |
101 defaultSelected: {type: "boolean", domAttrName: "selected"}, | 101 defaultSelected: {type: "boolean", domAttrName: "selected"}, |
102 value: {type: "string", customGetter: true}, | 102 value: {type: "string", customGetter: true}, |
103 }, | 103 }, |
104 textarea: { | 104 textarea: { |
105 // TODO: autocomplete is special. | 105 // TODO: autocomplete is special. |
106 // autocomplete: {type: "enum", keywords: ["on", "off"], defaultVal: "on"}, | 106 // autocomplete: {type: "enum", keywords: ["on", "off"], defaultVal: "on"}, |
107 autofocus: "boolean", | 107 autofocus: "boolean", |
108 cols: {type: "limited unsigned long", defaultVal: 20}, | 108 cols: {type: "limited unsigned long with fallback", defaultVal: 20}, |
109 dirName: "string", | 109 dirName: "string", |
110 disabled: "boolean", | 110 disabled: "boolean", |
111 inputMode: {type: "enum", keywords: ["verbatim", "latin", "latin-name", "lat
in-prose", "full-width-latin", "kana", "katakana", "numeric", "tel", "email", "u
rl"]}, | 111 inputMode: {type: "enum", keywords: ["verbatim", "latin", "latin-name", "lat
in-prose", "full-width-latin", "kana", "katakana", "numeric", "tel", "email", "u
rl"]}, |
112 maxLength: "limited long", | 112 maxLength: "limited long", |
113 name: "string", | 113 name: "string", |
114 placeholder: "string", | 114 placeholder: "string", |
115 readOnly: "boolean", | 115 readOnly: "boolean", |
116 required: "boolean", | 116 required: "boolean", |
117 rows: {type: "limited unsigned long", defaultVal: 2}, | 117 rows: {type: "limited unsigned long with fallback", defaultVal: 2}, |
118 wrap: "string", | 118 wrap: "string", |
119 }, | 119 }, |
120 keygen: { | 120 keygen: { |
121 autofocus: "boolean", | 121 autofocus: "boolean", |
122 challenge: "string", | 122 challenge: "string", |
123 disabled: "boolean", | 123 disabled: "boolean", |
124 // The invalid value default is the "unknown" state, which for our | 124 // The invalid value default is the "unknown" state, which for our |
125 // purposes seems to be the same as having no invalid value default. | 125 // purposes seems to be the same as having no invalid value default. |
126 // The missing value default depends on whether "rsa" is implemented, | 126 // The missing value default depends on whether "rsa" is implemented, |
127 // so we use null, which is magically reserved for "don't try testing | 127 // so we use null, which is magically reserved for "don't try testing |
128 // this", since no one default is required. (TODO: we could test that | 128 // this", since no one default is required. (TODO: we could test that |
129 // it's either the RSA state or the unknown state.) | 129 // it's either the RSA state or the unknown state.) |
130 keytype: {type: "enum", keywords: ["rsa"], defaultVal: null}, | 130 keytype: {type: "enum", keywords: ["rsa"], defaultVal: null}, |
131 name: "string", | 131 name: "string", |
132 }, | 132 }, |
133 output: { | 133 output: { |
134 htmlFor: {type: "settable tokenlist", domAttrName: "for" }, | 134 htmlFor: {type: "settable tokenlist", domAttrName: "for" }, |
135 name: "string", | 135 name: "string", |
136 }, | 136 }, |
137 progress: { | 137 progress: { |
138 max: {type: "limited double", defaultVal: 1.0}, | 138 max: {type: "limited double", defaultVal: 1.0}, |
139 }, | 139 }, |
140 meter: {}, | 140 meter: {}, |
141 }; | 141 }; |
142 | 142 |
143 mergeElements(formElements); | 143 mergeElements(formElements); |
OLD | NEW |