| 1 |
// Copyright 2016 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 |
goog.provide('goog.dom.Attr'); |
| 17 |
|
| 18 |
|
| 19 |
/** |
| 20 |
* Enum of all html attribute names specified by the HTML specitifcations. |
| 21 |
* @enum {string} |
| 22 |
*/ |
| 23 |
goog.dom.Attr = { |
| 24 |
ACCEPT: 'accept', |
| 25 |
ACCEPT_CHARSET: 'accept-charset', |
| 26 |
ACCESSKEY: 'accesskey', |
| 27 |
ACTION: 'action', |
| 28 |
ALIGN: 'align', |
| 29 |
ALT: 'alt', |
| 30 |
ASYNC: 'async', |
| 31 |
AUTOCOMPLETE: 'autocomplete', |
| 32 |
AUTOFOCUS: 'autofocus', |
| 33 |
AUTOPLAY: 'autoplay', |
| 34 |
AUTOSAVE: 'autosave', |
| 35 |
BGCOLOR: 'bgcolor', |
| 36 |
BORDER: 'border', |
| 37 |
BUFFERED: 'buffered', |
| 38 |
CHALLENGE: 'challenge', |
| 39 |
CHARSET: 'charset', |
| 40 |
CHECKED: 'checked', |
| 41 |
CITE: 'cite', |
| 42 |
CLASS: 'class', |
| 43 |
CODE: 'code', |
| 44 |
CODEBASE: 'codebase', |
| 45 |
COLOR: 'color', |
| 46 |
COLS: 'cols', |
| 47 |
COLSPAN: 'colspan', |
| 48 |
CONTENT: 'content', |
| 49 |
CONTENTEDITABLE: 'contenteditable', |
| 50 |
CONTEXTMENU: 'contextmenu', |
| 51 |
CONTROLS: 'controls', |
| 52 |
COORDS: 'coords', |
| 53 |
DATA: 'data', |
| 54 |
DATETIME: 'datetime', |
| 55 |
DEFAULT: 'default', |
| 56 |
DEFER: 'defer', |
| 57 |
DIR: 'dir', |
| 58 |
DIRNAME: 'dirname', |
| 59 |
DISABLED: 'disabled', |
| 60 |
DOWNLOAD: 'download', |
| 61 |
DRAGGABLE: 'draggable', |
| 62 |
DROPZONE: 'dropzone', |
| 63 |
ENCTYPE: 'enctype', |
| 64 |
FOR: 'for', |
| 65 |
FORM: 'form', |
| 66 |
FORMACTION: 'formaction', |
| 67 |
HEADERS: 'headers', |
| 68 |
HEIGHT: 'height', |
| 69 |
HIDDEN: 'hidden', |
| 70 |
HIGH: 'high', |
| 71 |
HREF: 'href', |
| 72 |
HREFLANG: 'hreflang', |
| 73 |
HTTP_EQUIV: 'http-equiv', |
| 74 |
ICON: 'icon', |
| 75 |
ID: 'id', |
| 76 |
ISMAP: 'ismap', |
| 77 |
ITEMPROP: 'itemprop', |
| 78 |
KEYTYPE: 'keytype', |
| 79 |
KIND: 'kind', |
| 80 |
LABEL: 'label', |
| 81 |
LANG: 'lang', |
| 82 |
LANGUAGE: 'language', |
| 83 |
LIST: 'list', |
| 84 |
LOOP: 'loop', |
| 85 |
LOW: 'low', |
| 86 |
MANIFEST: 'manifest', |
| 87 |
MAX: 'max', |
| 88 |
MAXLENGTH: 'maxlength', |
| 89 |
MEDIA: 'media', |
| 90 |
METHOD: 'method', |
| 91 |
MIN: 'min', |
| 92 |
MULTIPLE: 'multiple', |
| 93 |
MUTED: 'muted', |
| 94 |
NAME: 'name', |
| 95 |
NOVALIDATE: 'novalidate', |
| 96 |
OPEN: 'open', |
| 97 |
OPTIMUM: 'optimum', |
| 98 |
PATTERN: 'pattern', |
| 99 |
PING: 'ping', |
| 100 |
PLACEHOLDER: 'placeholder', |
| 101 |
POSTER: 'poster', |
| 102 |
PRELOAD: 'preload', |
| 103 |
RADIOGROUP: 'radiogroup', |
| 104 |
READONLY: 'readonly', |
| 105 |
REL: 'rel', |
| 106 |
REQUIRED: 'required', |
| 107 |
REVERSED: 'reversed', |
| 108 |
ROWS: 'rows', |
| 109 |
ROWSPAN: 'rowspan', |
| 110 |
SANDBOX: 'sandbox', |
| 111 |
SCOPE: 'scope', |
| 112 |
SCOPED: 'scoped', |
| 113 |
SEAMLESS: 'seamless', |
| 114 |
SELECTED: 'selected', |
| 115 |
SHAPE: 'shape', |
| 116 |
SIZE: 'size', |
| 117 |
SIZES: 'sizes', |
| 118 |
SPAN: 'span', |
| 119 |
SPELLCHECK: 'spellcheck', |
| 120 |
SRC: 'src', |
| 121 |
SRCDOC: 'srcdoc', |
| 122 |
SRCLANG: 'srclang', |
| 123 |
SRCSET: 'srcset', |
| 124 |
START: 'start', |
| 125 |
STEP: 'step', |
| 126 |
STYLE: 'style', |
| 127 |
SUMMARY: 'summary', |
| 128 |
TABINDEX: 'tabindex', |
| 129 |
TARGET: 'target', |
| 130 |
TITLE: 'title', |
| 131 |
TYPE: 'type', |
| 132 |
USEMAP: 'usemap', |
| 133 |
VALUE: 'value', |
| 134 |
WIDTH: 'width', |
| 135 |
WRAP: 'wrap' |
| 136 |
}; |