/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. This file contains the list of all HTML tags
  39. See nsHTMLTags.h for access to the enum values for tags
  40. It is designed to be used as inline input to nsHTMLTags.cpp and
  41. nsHTMLContentSink *only* through the magic of C preprocessing.
  42. All entries must be enclosed in the macro HTML_TAG which will have cruel
  43. and unusual things done to it
  44. It is recommended (but not strictly necessary) to keep all entries
  45. in alphabetical order
  46. The first argument to HTML_TAG is both the enum identifier of the
  47. property and the string value. The second argument is the "creator"
  48. method of the form NS_New$TAGNAMEElement, that will be used by
  49. nsHTMLContentSink.cpp to create a content object for a tag of that
  50. type. Use NOTUSED, if the particular tag has a non-standard creator.
  51. The HTML_OTHER macro is for values in the nsHTMLTag enum that are
  52. not strictly tags.
  53. Entries *must* use only lowercase characters.
  54. Don't forget to update /editor/libeditor/html/nsHTMLEditUtils.cpp as well.
  55. ** Break these invariants and bad things will happen. **
  56. ******/
  57. HTML_TAG(a, Anchor)
  58. HTML_HTMLELEMENT_TAG(abbr)
  59. HTML_HTMLELEMENT_TAG(acronym)
  60. HTML_HTMLELEMENT_TAG(address)
  61. HTML_TAG(applet, SharedObject)
  62. HTML_TAG(area, Area)
  63. HTML_HTMLELEMENT_TAG(article)
  64. HTML_HTMLELEMENT_TAG(aside)
  65. #if defined(MOZ_MEDIA)
  66. HTML_TAG(audio, Audio)
  67. #endif
  68. HTML_HTMLELEMENT_TAG(b)
  69. HTML_TAG(base, Shared)
  70. HTML_TAG(basefont, Span)
  71. HTML_HTMLELEMENT_TAG(bdo)
  72. HTML_TAG(bgsound, Span)
  73. HTML_HTMLELEMENT_TAG(big)
  74. HTML_HTMLELEMENT_TAG(blink)
  75. HTML_TAG(blockquote, Shared)
  76. HTML_TAG(body, Body)
  77. HTML_TAG(br, BR)
  78. HTML_TAG(button, Button)
  79. HTML_TAG(canvas, Canvas)
  80. HTML_TAG(caption, TableCaption)
  81. HTML_HTMLELEMENT_TAG(center)
  82. HTML_HTMLELEMENT_TAG(cite)
  83. HTML_HTMLELEMENT_TAG(code)
  84. HTML_TAG(col, TableCol)
  85. HTML_TAG(colgroup, TableCol)
  86. HTML_TAG(datalist, DataList)
  87. HTML_HTMLELEMENT_TAG(dd)
  88. HTML_TAG(del, Mod)
  89. HTML_HTMLELEMENT_TAG(dfn)
  90. HTML_TAG(dir, Shared)
  91. HTML_TAG(div, Div)
  92. HTML_TAG(dl, SharedList)
  93. HTML_HTMLELEMENT_TAG(dt)
  94. HTML_HTMLELEMENT_TAG(em)
  95. HTML_TAG(embed, SharedObject)
  96. HTML_TAG(fieldset, FieldSet)
  97. HTML_HTMLELEMENT_TAG(figcaption)
  98. HTML_HTMLELEMENT_TAG(figure)
  99. HTML_TAG(font, Font)
  100. HTML_HTMLELEMENT_TAG(footer)
  101. HTML_TAG(form, Form)
  102. HTML_TAG(frame, Frame)
  103. HTML_TAG(frameset, FrameSet)
  104. HTML_TAG(h1, Heading)
  105. HTML_TAG(h2, Heading)
  106. HTML_TAG(h3, Heading)
  107. HTML_TAG(h4, Heading)
  108. HTML_TAG(h5, Heading)
  109. HTML_TAG(h6, Heading)
  110. HTML_TAG(head, Shared)
  111. HTML_HTMLELEMENT_TAG(header)
  112. HTML_HTMLELEMENT_TAG(hgroup)
  113. HTML_TAG(hr, HR)
  114. HTML_TAG(html, Shared)
  115. HTML_HTMLELEMENT_TAG(i)
  116. HTML_TAG(iframe, IFrame)
  117. HTML_TAG(image, Span)
  118. HTML_TAG(img, Image)
  119. HTML_TAG(input, Input)
  120. HTML_TAG(ins, Mod)
  121. HTML_HTMLELEMENT_TAG(kbd)
  122. HTML_TAG(keygen, Span)
  123. HTML_TAG(label, Label)
  124. HTML_TAG(legend, Legend)
  125. HTML_TAG(li, LI)
  126. HTML_TAG(link, Link)
  127. HTML_HTMLELEMENT_TAG(listing)
  128. HTML_TAG(map, Map)
  129. HTML_HTMLELEMENT_TAG(mark)
  130. HTML_TAG(marquee, Div)
  131. HTML_TAG(menu, Menu)
  132. HTML_TAG(menuitem, MenuItem)
  133. HTML_TAG(meta, Meta)
  134. HTML_TAG(multicol, Span)
  135. HTML_HTMLELEMENT_TAG(nav)
  136. HTML_HTMLELEMENT_TAG(nobr)
  137. HTML_HTMLELEMENT_TAG(noembed)
  138. HTML_HTMLELEMENT_TAG(noframes)
  139. HTML_HTMLELEMENT_TAG(noscript)
  140. HTML_TAG(object, Object)
  141. HTML_TAG(ol, SharedList)
  142. HTML_TAG(optgroup, OptGroup)
  143. HTML_TAG(option, Option)
  144. HTML_TAG(output, Output)
  145. HTML_TAG(p, Paragraph)
  146. HTML_TAG(param, Shared)
  147. HTML_HTMLELEMENT_TAG(plaintext)
  148. HTML_TAG(pre, Pre)
  149. HTML_TAG(progress, Progress)
  150. HTML_TAG(q, Shared)
  151. HTML_HTMLELEMENT_TAG(s)
  152. HTML_HTMLELEMENT_TAG(samp)
  153. HTML_TAG(script, Script)
  154. HTML_HTMLELEMENT_TAG(section)
  155. HTML_TAG(select, Select)
  156. HTML_HTMLELEMENT_TAG(small)
  157. #if defined(MOZ_MEDIA)
  158. HTML_TAG(source, Source)
  159. #endif
  160. HTML_TAG(span, Span)
  161. HTML_HTMLELEMENT_TAG(strike)
  162. HTML_HTMLELEMENT_TAG(strong)
  163. HTML_TAG(style, Style)
  164. HTML_HTMLELEMENT_TAG(sub)
  165. HTML_HTMLELEMENT_TAG(sup)
  166. HTML_TAG(table, Table)
  167. HTML_TAG(tbody, TableSection)
  168. HTML_TAG(td, TableCell)
  169. HTML_TAG(textarea, TextArea)
  170. HTML_TAG(tfoot, TableSection)
  171. HTML_TAG(th, TableCell)
  172. HTML_TAG(thead, TableSection)
  173. HTML_TAG(title, Title)
  174. HTML_TAG(tr, TableRow)
  175. HTML_HTMLELEMENT_TAG(tt)
  176. HTML_HTMLELEMENT_TAG(u)
  177. HTML_TAG(ul, SharedList)
  178. HTML_HTMLELEMENT_TAG(var)
  179. #if defined(MOZ_MEDIA)
  180. HTML_TAG(video, Video)
  181. #endif
  182. HTML_HTMLELEMENT_TAG(wbr)
  183. HTML_HTMLELEMENT_TAG(xmp)
  184. /* These are not for tags. But they will be included in the nsHTMLTag
  185. enum anyway */
  186. HTML_OTHER(text)
  187. HTML_OTHER(whitespace)
  188. HTML_OTHER(newline)
  189. HTML_OTHER(comment)
  190. HTML_OTHER(entity)
  191. HTML_OTHER(doctypeDecl)
  192. HTML_OTHER(markupDecl)
  193. HTML_OTHER(instruction)