# lib/goog/dom/tagname.js

1 | // Copyright 2007 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.TagName enum. This enumerates
17 | * all HTML tag names specified in either the the W3C HTML 4.01 index of
18 | * elements or the HTML5 draft specification.
19 | *
20 | * References:
21 | * http://www.w3.org/TR/html401/index/elements.html
22 | * http://dev.w3.org/html5/spec/section-index.html
23 | *
24 | */
25 | goog.provide('goog.dom.TagName');
26 |
27 |
28 | /**
29 | * Enum of all html tag names specified by the W3C HTML4.01 and HTML5
30 | * specifications.
31 | * @enum {string}
32 | */
33 | goog.dom.TagName = {
34 | A: 'A',
35 | ABBR: 'ABBR',
36 | ACRONYM: 'ACRONYM',
37 | ADDRESS: 'ADDRESS',
38 | APPLET: 'APPLET',
39 | AREA: 'AREA',
40 | ARTICLE: 'ARTICLE',
41 | ASIDE: 'ASIDE',
42 | AUDIO: 'AUDIO',
43 | B: 'B',
44 | BASE: 'BASE',
45 | BASEFONT: 'BASEFONT',
46 | BDI: 'BDI',
47 | BDO: 'BDO',
48 | BIG: 'BIG',
49 | BLOCKQUOTE: 'BLOCKQUOTE',
50 | BODY: 'BODY',
51 | BR: 'BR',
52 | BUTTON: 'BUTTON',
53 | CANVAS: 'CANVAS',
54 | CAPTION: 'CAPTION',
55 | CENTER: 'CENTER',
56 | CITE: 'CITE',
57 | CODE: 'CODE',
58 | COL: 'COL',
59 | COLGROUP: 'COLGROUP',
60 | COMMAND: 'COMMAND',
61 | DATA: 'DATA',
62 | DATALIST: 'DATALIST',
63 | DD: 'DD',
64 | DEL: 'DEL',
65 | DETAILS: 'DETAILS',
66 | DFN: 'DFN',
67 | DIALOG: 'DIALOG',
68 | DIR: 'DIR',
69 | DIV: 'DIV',
70 | DL: 'DL',
71 | DT: 'DT',
72 | EM: 'EM',
73 | EMBED: 'EMBED',
74 | FIELDSET: 'FIELDSET',
75 | FIGCAPTION: 'FIGCAPTION',
76 | FIGURE: 'FIGURE',
77 | FONT: 'FONT',
78 | FOOTER: 'FOOTER',
79 | FORM: 'FORM',
80 | FRAME: 'FRAME',
81 | FRAMESET: 'FRAMESET',
82 | H1: 'H1',
83 | H2: 'H2',
84 | H3: 'H3',
85 | H4: 'H4',
86 | H5: 'H5',
87 | H6: 'H6',
88 | HEAD: 'HEAD',
89 | HEADER: 'HEADER',
90 | HGROUP: 'HGROUP',
91 | HR: 'HR',
92 | HTML: 'HTML',
93 | I: 'I',
94 | IFRAME: 'IFRAME',
95 | IMG: 'IMG',
96 | INPUT: 'INPUT',
97 | INS: 'INS',
98 | ISINDEX: 'ISINDEX',
99 | KBD: 'KBD',
100 | KEYGEN: 'KEYGEN',
101 | LABEL: 'LABEL',
102 | LEGEND: 'LEGEND',
103 | LI: 'LI',
104 | LINK: 'LINK',
105 | MAP: 'MAP',
106 | MARK: 'MARK',
107 | MATH: 'MATH',
108 | MENU: 'MENU',
109 | META: 'META',
110 | METER: 'METER',
111 | NAV: 'NAV',
112 | NOFRAMES: 'NOFRAMES',
113 | NOSCRIPT: 'NOSCRIPT',
114 | OBJECT: 'OBJECT',
115 | OL: 'OL',
116 | OPTGROUP: 'OPTGROUP',
117 | OPTION: 'OPTION',
118 | OUTPUT: 'OUTPUT',
119 | P: 'P',
120 | PARAM: 'PARAM',
121 | PRE: 'PRE',
122 | PROGRESS: 'PROGRESS',
123 | Q: 'Q',
124 | RP: 'RP',
125 | RT: 'RT',
126 | RUBY: 'RUBY',
127 | S: 'S',
128 | SAMP: 'SAMP',
129 | SCRIPT: 'SCRIPT',
130 | SECTION: 'SECTION',
131 | SELECT: 'SELECT',
132 | SMALL: 'SMALL',
133 | SOURCE: 'SOURCE',
134 | SPAN: 'SPAN',
135 | STRIKE: 'STRIKE',
136 | STRONG: 'STRONG',
137 | STYLE: 'STYLE',
138 | SUB: 'SUB',
139 | SUMMARY: 'SUMMARY',
140 | SUP: 'SUP',
141 | SVG: 'SVG',
142 | TABLE: 'TABLE',
143 | TBODY: 'TBODY',
144 | TD: 'TD',
145 | TEXTAREA: 'TEXTAREA',
146 | TFOOT: 'TFOOT',
147 | TH: 'TH',
148 | THEAD: 'THEAD',
149 | TIME: 'TIME',
150 | TITLE: 'TITLE',
151 | TR: 'TR',
152 | TRACK: 'TRACK',
153 | TT: 'TT',
154 | U: 'U',
155 | UL: 'UL',
156 | VAR: 'VAR',
157 | VIDEO: 'VIDEO',
158 | WBR: 'WBR'
159 | };