PageRenderTime 17ms CodeModel.GetById 1ms app.highlight 11ms RepoModel.GetById 2ms app.codeStats 0ms

/parser/htmlparser/public/nsHTMLTagList.h

http://github.com/zpao/v8monkey
C Header | 207 lines | 135 code | 4 blank | 68 comment | 0 complexity | 6c34db7c48d06d7997c06b67a6a79181 MD5 | raw file
  1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2/* ***** BEGIN LICENSE BLOCK *****
  3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4 *
  5 * The contents of this file are subject to the Mozilla Public License Version
  6 * 1.1 (the "License"); you may not use this file except in compliance with
  7 * the License. You may obtain a copy of the License at
  8 * http://www.mozilla.org/MPL/
  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 * Alternatively, the contents of this file may be used under the terms of
 25 * either of the GNU General Public License Version 2 or later (the "GPL"),
 26 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 27 * in which case the provisions of the GPL or the LGPL are applicable instead
 28 * of those above. If you wish to allow use of your version of this file only
 29 * under the terms of either the GPL or the LGPL, and not to allow others to
 30 * use your version of this file under the terms of the MPL, indicate your
 31 * decision by deleting the provisions above and replace them with the notice
 32 * and other provisions required by the GPL or the LGPL. If you do not delete
 33 * the provisions above, a recipient may use your version of this file under
 34 * the terms of any one of the MPL, the GPL or the LGPL.
 35 *
 36 * ***** END LICENSE BLOCK ***** */
 37
 38/******
 39
 40  This file contains the list of all HTML tags 
 41  See nsHTMLTags.h for access to the enum values for tags
 42
 43  It is designed to be used as inline input to nsHTMLTags.cpp and
 44  nsHTMLContentSink *only* through the magic of C preprocessing.
 45
 46  All entries must be enclosed in the macro HTML_TAG which will have cruel
 47  and unusual things done to it
 48
 49  It is recommended (but not strictly necessary) to keep all entries
 50  in alphabetical order
 51
 52  The first argument to HTML_TAG is both the enum identifier of the
 53  property and the string value. The second argument is the "creator"
 54  method of the form NS_New$TAGNAMEElement, that will be used by
 55  nsHTMLContentSink.cpp to create a content object for a tag of that
 56  type. Use NOTUSED, if the particular tag has a non-standard creator.
 57
 58  The HTML_OTHER macro is for values in the nsHTMLTag enum that are
 59  not strictly tags.
 60
 61  Entries *must* use only lowercase characters.
 62
 63  Don't forget to update /editor/libeditor/html/nsHTMLEditUtils.cpp as well.
 64
 65  ** Break these invariants and bad things will happen. **
 66
 67 ******/
 68HTML_TAG(a, Anchor)
 69HTML_HTMLELEMENT_TAG(abbr)
 70HTML_HTMLELEMENT_TAG(acronym)
 71HTML_HTMLELEMENT_TAG(address)
 72HTML_TAG(applet, SharedObject)
 73HTML_TAG(area, Area)
 74HTML_HTMLELEMENT_TAG(article)
 75HTML_HTMLELEMENT_TAG(aside)
 76#if defined(MOZ_MEDIA)
 77HTML_TAG(audio, Audio)
 78#endif
 79HTML_HTMLELEMENT_TAG(b)
 80HTML_TAG(base, Shared)
 81HTML_TAG(basefont, Span)
 82HTML_HTMLELEMENT_TAG(bdo)
 83HTML_TAG(bgsound, Span)
 84HTML_HTMLELEMENT_TAG(big)
 85HTML_HTMLELEMENT_TAG(blink)
 86HTML_TAG(blockquote, Shared)
 87HTML_TAG(body, Body)
 88HTML_TAG(br, BR)
 89HTML_TAG(button, Button)
 90HTML_TAG(canvas, Canvas)
 91HTML_TAG(caption, TableCaption)
 92HTML_HTMLELEMENT_TAG(center)
 93HTML_HTMLELEMENT_TAG(cite)
 94HTML_HTMLELEMENT_TAG(code)
 95HTML_TAG(col, TableCol)
 96HTML_TAG(colgroup, TableCol)
 97HTML_TAG(datalist, DataList)
 98HTML_HTMLELEMENT_TAG(dd)
 99HTML_TAG(del, Mod)
100HTML_HTMLELEMENT_TAG(dfn)
101HTML_TAG(dir, Shared)
102HTML_TAG(div, Div)
103HTML_TAG(dl, SharedList)
104HTML_HTMLELEMENT_TAG(dt)
105HTML_HTMLELEMENT_TAG(em)
106HTML_TAG(embed, SharedObject)
107HTML_TAG(fieldset, FieldSet)
108HTML_HTMLELEMENT_TAG(figcaption)
109HTML_HTMLELEMENT_TAG(figure)
110HTML_TAG(font, Font)
111HTML_HTMLELEMENT_TAG(footer)
112HTML_TAG(form, Form)
113HTML_TAG(frame, Frame)
114HTML_TAG(frameset, FrameSet)
115HTML_TAG(h1, Heading)
116HTML_TAG(h2, Heading)
117HTML_TAG(h3, Heading)
118HTML_TAG(h4, Heading)
119HTML_TAG(h5, Heading)
120HTML_TAG(h6, Heading)
121HTML_TAG(head, Shared)
122HTML_HTMLELEMENT_TAG(header)
123HTML_HTMLELEMENT_TAG(hgroup)
124HTML_TAG(hr, HR)
125HTML_TAG(html, Shared)
126HTML_HTMLELEMENT_TAG(i)
127HTML_TAG(iframe, IFrame)
128HTML_TAG(image, Span)
129HTML_TAG(img, Image)
130HTML_TAG(input, Input)
131HTML_TAG(ins, Mod)
132HTML_HTMLELEMENT_TAG(kbd)
133HTML_TAG(keygen, Span)
134HTML_TAG(label, Label)
135HTML_TAG(legend, Legend)
136HTML_TAG(li, LI)
137HTML_TAG(link, Link)
138HTML_HTMLELEMENT_TAG(listing)
139HTML_TAG(map, Map)
140HTML_HTMLELEMENT_TAG(mark)
141HTML_TAG(marquee, Div)
142HTML_TAG(menu, Menu)
143HTML_TAG(menuitem, MenuItem)
144HTML_TAG(meta, Meta)
145HTML_TAG(multicol, Span)
146HTML_HTMLELEMENT_TAG(nav)
147HTML_HTMLELEMENT_TAG(nobr)
148HTML_HTMLELEMENT_TAG(noembed)
149HTML_HTMLELEMENT_TAG(noframes)
150HTML_HTMLELEMENT_TAG(noscript)
151HTML_TAG(object, Object)
152HTML_TAG(ol, SharedList)
153HTML_TAG(optgroup, OptGroup)
154HTML_TAG(option, Option)
155HTML_TAG(output, Output)
156HTML_TAG(p, Paragraph)
157HTML_TAG(param, Shared)
158HTML_HTMLELEMENT_TAG(plaintext)
159HTML_TAG(pre, Pre)
160HTML_TAG(progress, Progress)
161HTML_TAG(q, Shared)
162HTML_HTMLELEMENT_TAG(s)
163HTML_HTMLELEMENT_TAG(samp)
164HTML_TAG(script, Script)
165HTML_HTMLELEMENT_TAG(section)
166HTML_TAG(select, Select)
167HTML_HTMLELEMENT_TAG(small)
168#if defined(MOZ_MEDIA)
169HTML_TAG(source, Source)
170#endif
171HTML_TAG(span, Span)
172HTML_HTMLELEMENT_TAG(strike)
173HTML_HTMLELEMENT_TAG(strong)
174HTML_TAG(style, Style)
175HTML_HTMLELEMENT_TAG(sub)
176HTML_HTMLELEMENT_TAG(sup)
177HTML_TAG(table, Table)
178HTML_TAG(tbody, TableSection)
179HTML_TAG(td, TableCell)
180HTML_TAG(textarea, TextArea)
181HTML_TAG(tfoot, TableSection)
182HTML_TAG(th, TableCell)
183HTML_TAG(thead, TableSection)
184HTML_TAG(title, Title)
185HTML_TAG(tr, TableRow)
186HTML_HTMLELEMENT_TAG(tt)
187HTML_HTMLELEMENT_TAG(u)
188HTML_TAG(ul, SharedList)
189HTML_HTMLELEMENT_TAG(var)
190#if defined(MOZ_MEDIA)
191HTML_TAG(video, Video)
192#endif
193HTML_HTMLELEMENT_TAG(wbr)
194HTML_HTMLELEMENT_TAG(xmp)
195
196
197/* These are not for tags. But they will be included in the nsHTMLTag
198   enum anyway */
199
200HTML_OTHER(text)
201HTML_OTHER(whitespace)
202HTML_OTHER(newline)
203HTML_OTHER(comment)
204HTML_OTHER(entity)
205HTML_OTHER(doctypeDecl)
206HTML_OTHER(markupDecl)
207HTML_OTHER(instruction)