| 1 |
// Copyright 2015 The Closure Library Authors. All Rights Reserved. |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS-IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
/** |
| 16 |
* @fileoverview Defines the goog.dom.InputType enum. This enumerates |
| 17 |
* all input element types (for INPUT, BUTTON, SELECT and TEXTAREA |
| 18 |
* elements) in either the the W3C HTML 4.01 index of elements or the |
| 19 |
* HTML5 draft specification. |
| 20 |
* |
| 21 |
* References: |
| 22 |
* http://www.w3.org/TR/html401/sgml/dtd.html#InputType |
| 23 |
* http://www.w3.org/TR/html-markup/input.html#input |
| 24 |
* https://html.spec.whatwg.org/multipage/forms.html#dom-input-type |
| 25 |
* https://html.spec.whatwg.org/multipage/forms.html#dom-button-type |
| 26 |
* https://html.spec.whatwg.org/multipage/forms.html#dom-select-type |
| 27 |
* https://html.spec.whatwg.org/multipage/forms.html#dom-textarea-type |
| 28 |
* |
| 29 |
* @author [email protected] (Michal Nazarewicz) |
| 30 |
*/ |
| 31 |
goog.provide('goog.dom.InputType'); |
| 32 |
|
| 33 |
|
| 34 |
/** |
| 35 |
* Enum of all input types (for INPUT, BUTTON, SELECT and TEXTAREA elements) |
| 36 |
* specified by the W3C HTML4.01 and HTML5 specifications. |
| 37 |
* @enum {string} |
| 38 |
*/ |
| 39 |
goog.dom.InputType = { |
| 40 |
BUTTON: 'button', |
| 41 |
CHECKBOX: 'checkbox', |
| 42 |
COLOR: 'color', |
| 43 |
DATE: 'date', |
| 44 |
DATETIME: 'datetime', |
| 45 |
DATETIME_LOCAL: 'datetime-local', |
| 46 |
EMAIL: 'email', |
| 47 |
FILE: 'file', |
| 48 |
HIDDEN: 'hidden', |
| 49 |
IMAGE: 'image', |
| 50 |
MENU: 'menu', |
| 51 |
MONTH: 'month', |
| 52 |
NUMBER: 'number', |
| 53 |
PASSWORD: 'password', |
| 54 |
RADIO: 'radio', |
| 55 |
RANGE: 'range', |
| 56 |
RESET: 'reset', |
| 57 |
SEARCH: 'search', |
| 58 |
SELECT_MULTIPLE: 'select-multiple', |
| 59 |
SELECT_ONE: 'select-one', |
| 60 |
SUBMIT: 'submit', |
| 61 |
TEL: 'tel', |
| 62 |
TEXT: 'text', |
| 63 |
TEXTAREA: 'textarea', |
| 64 |
TIME: 'time', |
| 65 |
URL: 'url', |
| 66 |
WEEK: 'week' |
| 67 |
}; |