attr.js 3.0 KB

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