1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
---|
2 | /* ***** BEGIN LICENSE BLOCK ***** |
---|
3 | * Version: NPL 1.1/GPL 2.0/LGPL 2.1 |
---|
4 | * |
---|
5 | * The contents of this file are subject to the Netscape Public License |
---|
6 | * Version 1.1 (the "License"); you may not use this file except in |
---|
7 | * compliance with the License. You may obtain a copy of the License at |
---|
8 | * http://www.mozilla.org/NPL/ |
---|
9 | * |
---|
10 | * Software distributed under the License is distributed on an "AS IS" basis, |
---|
11 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
---|
12 | * for the specific language governing rights and limitations under the |
---|
13 | * License. |
---|
14 | * |
---|
15 | * The Original Code is mozilla.org code. |
---|
16 | * |
---|
17 | * The Initial Developer of the Original Code is |
---|
18 | * Netscape Communications Corporation. |
---|
19 | * Portions created by the Initial Developer are Copyright (C) 1999 |
---|
20 | * the Initial Developer. All Rights Reserved. |
---|
21 | * |
---|
22 | * Contributor(s): |
---|
23 | * |
---|
24 | * |
---|
25 | * Alternatively, the contents of this file may be used under the terms of |
---|
26 | * either the GNU General Public License Version 2 or later (the "GPL"), or |
---|
27 | * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
---|
28 | * in which case the provisions of the GPL or the LGPL are applicable instead |
---|
29 | * of those above. If you wish to allow use of your version of this file only |
---|
30 | * under the terms of either the GPL or the LGPL, and not to allow others to |
---|
31 | * use your version of this file under the terms of the NPL, indicate your |
---|
32 | * decision by deleting the provisions above and replace them with the notice |
---|
33 | * and other provisions required by the GPL or the LGPL. If you do not delete |
---|
34 | * the provisions above, a recipient may use your version of this file under |
---|
35 | * the terms of any one of the NPL, the GPL or the LGPL. |
---|
36 | * |
---|
37 | * ***** END LICENSE BLOCK ***** */ |
---|
38 | |
---|
39 | /****** |
---|
40 | |
---|
41 | This file contains the list of all HTML tags |
---|
42 | See nsHTMLTags.h for access to the enum values for tags |
---|
43 | |
---|
44 | It is designed to be used as inline input to nsHTMLTags.cpp and |
---|
45 | nsHTMLContentSink *only* through the magic of C preprocessing. |
---|
46 | |
---|
47 | All entires must be enclosed in the macro HTML_TAG which will have cruel |
---|
48 | and unusual things done to it |
---|
49 | |
---|
50 | It is recommended (but not strictly necessary) to keep all entries |
---|
51 | in alphabetical order |
---|
52 | |
---|
53 | The first argument to HTML_TAG is both the enum identifier of the |
---|
54 | property and the string value. The second argument is the "creator" |
---|
55 | method of the form NS_New$TAGNAMEElement, that will be used by |
---|
56 | nsHTMLContentSink.cpp to create a content object for a tag of that |
---|
57 | type. Use NOTUSED, if the particular tag has a non-standard creator. |
---|
58 | |
---|
59 | The HTML_OTHER macro is for values in the nsHTMLTag enum that are |
---|
60 | not strictly tags. |
---|
61 | |
---|
62 | Entries *must* use only lowercase characters. |
---|
63 | |
---|
64 | ** Break these invarient and bad things will happen. ** |
---|
65 | |
---|
66 | ******/ |
---|
67 | HTML_TAG(a, Anchor) |
---|
68 | HTML_TAG(abbr, Span) |
---|
69 | HTML_TAG(acronym, Span) |
---|
70 | HTML_TAG(address, Span) |
---|
71 | HTML_TAG(applet, Applet) |
---|
72 | HTML_TAG(area, Area) |
---|
73 | HTML_TAG(b, Span) |
---|
74 | HTML_TAG(base, SharedLeaf) |
---|
75 | HTML_TAG(basefont, BaseFont) |
---|
76 | HTML_TAG(bdo, Span) |
---|
77 | HTML_TAG(bgsound, Span) |
---|
78 | HTML_TAG(big, Span) |
---|
79 | HTML_TAG(blink, Span) |
---|
80 | HTML_TAG(blockquote, Quote) |
---|
81 | HTML_TAG(body, Body) |
---|
82 | HTML_TAG(br, BR) |
---|
83 | HTML_TAG(button, Button) |
---|
84 | HTML_TAG(caption, TableCaption) |
---|
85 | HTML_TAG(center, Span) |
---|
86 | HTML_TAG(cite, Span) |
---|
87 | HTML_TAG(code, Span) |
---|
88 | HTML_TAG(col, TableCol) |
---|
89 | HTML_TAG(colgroup, TableCol) |
---|
90 | HTML_TAG(counter, Span) |
---|
91 | HTML_TAG(dd, Span) |
---|
92 | HTML_TAG(del, Del) |
---|
93 | HTML_TAG(dfn, Span) |
---|
94 | HTML_TAG(dir, Directory) |
---|
95 | HTML_TAG(div, Div) |
---|
96 | HTML_TAG(dl, DList) |
---|
97 | HTML_TAG(dt, Span) |
---|
98 | HTML_TAG(em, Span) |
---|
99 | HTML_TAG(embed, SharedLeaf) |
---|
100 | HTML_TAG(endnote, Span) |
---|
101 | HTML_TAG(fieldset, FieldSet) |
---|
102 | HTML_TAG(font, Font) |
---|
103 | HTML_TAG(form, NOTUSED) |
---|
104 | HTML_TAG(frame, Frame) |
---|
105 | HTML_TAG(frameset, FrameSet) |
---|
106 | HTML_TAG(h1, Heading) |
---|
107 | HTML_TAG(h2, Heading) |
---|
108 | HTML_TAG(h3, Heading) |
---|
109 | HTML_TAG(h4, Heading) |
---|
110 | HTML_TAG(h5, Heading) |
---|
111 | HTML_TAG(h6, Heading) |
---|
112 | HTML_TAG(head, Head) |
---|
113 | HTML_TAG(hr, HR) |
---|
114 | HTML_TAG(html, Html) |
---|
115 | HTML_TAG(i, Span) |
---|
116 | HTML_TAG(iframe, IFrame) |
---|
117 | HTML_TAG(image, Span) |
---|
118 | HTML_TAG(img, Image) |
---|
119 | HTML_TAG(input, Input) |
---|
120 | HTML_TAG(ins, Ins) |
---|
121 | HTML_TAG(isindex, SharedLeaf) |
---|
122 | HTML_TAG(kbd, Span) |
---|
123 | HTML_TAG(keygen, Span) |
---|
124 | HTML_TAG(label, Label) |
---|
125 | HTML_TAG(legend, Legend) |
---|
126 | HTML_TAG(li, LI) |
---|
127 | HTML_TAG(link, Link) |
---|
128 | HTML_TAG(listing, Span) |
---|
129 | HTML_TAG(map, Map) |
---|
130 | HTML_TAG(marquee, Div) |
---|
131 | HTML_TAG(menu, Menu) |
---|
132 | HTML_TAG(meta, Meta) |
---|
133 | HTML_TAG(multicol, Span) |
---|
134 | HTML_TAG(nobr, Span) |
---|
135 | HTML_TAG(noembed, Div) |
---|
136 | HTML_TAG(noframes, Div) |
---|
137 | HTML_TAG(noscript, Div) |
---|
138 | HTML_TAG(object, Object) |
---|
139 | HTML_TAG(ol, OList) |
---|
140 | HTML_TAG(optgroup, OptGroup) |
---|
141 | HTML_TAG(option, Option) |
---|
142 | HTML_TAG(p, Paragraph) |
---|
143 | HTML_TAG(param, SharedLeaf) |
---|
144 | HTML_TAG(plaintext, Span) |
---|
145 | HTML_TAG(pre, Pre) |
---|
146 | HTML_TAG(q, Quote) |
---|
147 | HTML_TAG(s, Span) |
---|
148 | HTML_TAG(samp, Span) |
---|
149 | HTML_TAG(script, Script) |
---|
150 | HTML_TAG(select, Select) |
---|
151 | HTML_TAG(server, Span) |
---|
152 | HTML_TAG(small, Span) |
---|
153 | HTML_TAG(sound, Span) |
---|
154 | HTML_TAG(spacer, SharedLeaf) |
---|
155 | HTML_TAG(span, Span) |
---|
156 | HTML_TAG(strike, Span) |
---|
157 | HTML_TAG(strong, Span) |
---|
158 | HTML_TAG(style, Style) |
---|
159 | HTML_TAG(sub, Span) |
---|
160 | HTML_TAG(sup, Span) |
---|
161 | HTML_TAG(table, Table) |
---|
162 | HTML_TAG(tbody, TableSection) |
---|
163 | HTML_TAG(td, TableCell) |
---|
164 | HTML_TAG(textarea, TextArea) |
---|
165 | HTML_TAG(tfoot, TableSection) |
---|
166 | HTML_TAG(th, TableCell) |
---|
167 | HTML_TAG(thead, TableSection) |
---|
168 | HTML_TAG(title, Title) |
---|
169 | HTML_TAG(tr, TableRow) |
---|
170 | HTML_TAG(tt, Span) |
---|
171 | HTML_TAG(u, Span) |
---|
172 | HTML_TAG(ul, UList) |
---|
173 | HTML_TAG(var, Span) |
---|
174 | HTML_TAG(wbr, SharedLeaf) |
---|
175 | HTML_TAG(xmp, Span) |
---|
176 | |
---|
177 | |
---|
178 | /* These are not for tags. But they will be included in the nsHTMLTag |
---|
179 | enum anyway */ |
---|
180 | |
---|
181 | /* XXX: The second parameters in some of the following entries look |
---|
182 | like they are just wrong. They should really be NOTUSED. For now, |
---|
183 | I'm just emulating what nsHTMLContentSink has done all along. |
---|
184 | */ |
---|
185 | HTML_OTHER(text, Span) |
---|
186 | HTML_OTHER(whitespace, Span) |
---|
187 | HTML_OTHER(newline, Span) |
---|
188 | HTML_OTHER(comment, Span) |
---|
189 | HTML_OTHER(entity, Span) |
---|
190 | HTML_OTHER(doctypeDecl, Span) |
---|
191 | HTML_OTHER(markupDecl, Span) |
---|
192 | HTML_OTHER(instruction, Span) |
---|