tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

elements-forms-weekmonth.js (1385B)


      1 var formElements = {
      2  input: {
      3    // Conforming
      4    accept: "string",
      5    alt: "string",
      6    autocomplete: {type: "string", customGetter: true},
      7    defaultChecked: {type: "boolean", domAttrName: "checked"},
      8    dirName: "string",
      9    disabled: "boolean",
     10    // "formAction" has magic hard-coded in reflection.js
     11    formAction: "url",
     12    formEnctype: {type: "enum", keywords: ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], invalidVal: "application/x-www-form-urlencoded"},
     13    formMethod: {type: "enum", keywords: ["get", "post"], invalidVal: "get"},
     14    formNoValidate: "boolean",
     15    formTarget: "string",
     16    height: {type: "unsigned long", customGetter: true},
     17    max: "string",
     18    maxLength: "limited long",
     19    min: "string",
     20    minLength: "limited long",
     21    multiple: "boolean",
     22    name: "string",
     23    pattern: "string",
     24    placeholder: "string",
     25    readOnly: "boolean",
     26    required: "boolean",
     27    // https://html.spec.whatwg.org/#attr-input-size
     28    size: {type: "limited unsigned long", defaultVal: 20},
     29    src: "url",
     30    step: "string",
     31    type: {type: "enum", keywords: ["month", "week"],
     32      defaultVal: "text"},
     33    width: {type: "unsigned long", customGetter: true},
     34    defaultValue: {type: "string", domAttrName: "value"},
     35 
     36    // Obsolete
     37    align: "string",
     38    useMap: "string",
     39  },
     40 };
     41 
     42 mergeElements(formElements);