| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 autofocus: "boolean", | 72 autofocus: "boolean", |
| 73 disabled: "boolean", | 73 disabled: "boolean", |
| 74 // TODO: formAction is special | 74 // TODO: formAction is special |
| 75 // formAction: "url", | 75 // formAction: "url", |
| 76 formEnctype: {type: "enum", keywords: ["application/x-www-form-urlencoded",
"multipart/form-data", "text/plain"], invalidVal: "application/x-www-form-urlenc
oded"}, | 76 formEnctype: {type: "enum", keywords: ["application/x-www-form-urlencoded",
"multipart/form-data", "text/plain"], invalidVal: "application/x-www-form-urlenc
oded"}, |
| 77 formMethod: {type: "enum", keywords: ["get", "post", "dialog"], invalidVal:
"get"}, | 77 formMethod: {type: "enum", keywords: ["get", "post", "dialog"], invalidVal:
"get"}, |
| 78 formNoValidate: "boolean", | 78 formNoValidate: "boolean", |
| 79 formTarget: "string", | 79 formTarget: "string", |
| 80 name: "string", | 80 name: "string", |
| 81 type: {type: "enum", keywords: ["submit", "reset", "button"], defaultVal: "s
ubmit"}, | 81 type: {type: "enum", keywords: ["submit", "reset", "button"], defaultVal: "s
ubmit"}, |
| 82 value: "string", | 82 value: "string" |
| 83 // TODO: menu | |
| 84 }, | 83 }, |
| 85 select: { | 84 select: { |
| 86 autofocus: "boolean", | 85 autofocus: "boolean", |
| 87 disabled: "boolean", | 86 disabled: "boolean", |
| 88 multiple: "boolean", | 87 multiple: "boolean", |
| 89 name: "string", | 88 name: "string", |
| 90 required: "boolean", | 89 required: "boolean", |
| 91 size: {type: "unsigned long", defaultVal: 0}, | 90 size: {type: "unsigned long", defaultVal: 0}, |
| 92 }, | 91 }, |
| 93 datalist: {}, | 92 datalist: {}, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 htmlFor: {type: "settable tokenlist", domAttrName: "for" }, | 133 htmlFor: {type: "settable tokenlist", domAttrName: "for" }, |
| 135 name: "string", | 134 name: "string", |
| 136 }, | 135 }, |
| 137 progress: { | 136 progress: { |
| 138 max: {type: "limited double", defaultVal: 1.0}, | 137 max: {type: "limited double", defaultVal: 1.0}, |
| 139 }, | 138 }, |
| 140 meter: {}, | 139 meter: {}, |
| 141 }; | 140 }; |
| 142 | 141 |
| 143 mergeElements(formElements); | 142 mergeElements(formElements); |
| OLD | NEW |