Bug 1526591 - Remove devtools.inspector.shapesHighlighter.enabled pref. r=rcaliman
[gecko.git] / parser / htmlparser / nsHTMLTagList.h
blobd02836d26d94160d333f71bfc7cd8c03e66b4fb3
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 // IWYU pragma: private, include "nsHTMLTags.h"
8 /******
10 This file contains the list of all HTML tags.
11 See nsHTMLTags.h for access to the enum values for tags.
13 It is designed to be used as input to various places that will define the
14 HTML_TAG macro in useful ways through the magic of C preprocessing.
15 Additionally, it is consumed by the self-regeneration code in
16 ElementName.java from which nsHtml5ElementName.cpp/h is translated.
17 See parser/html/java/README.txt.
19 If you edit this list, you need to re-run ElementName.java
20 self-regeneration and the HTML parser Java to C++ translation.
22 All entries must be enclosed in the macro HTML_TAG which will have cruel
23 and unusual things done to it.
25 It is recommended (but not strictly necessary) to keep all entries
26 in alphabetical order.
28 The first argument to HTML_TAG is the tag name. The second argument is the
29 "creator" method of the form NS_New$TAGNAMEElement, that will be used by
30 nsHTMLContentSink.cpp to create a content object for a tag of that
31 type. Use NOTUSED, if the particular tag has a non-standard creator.
32 The third argument is the interface name specified for this element
33 in the HTML specification. It can be empty if the relevant interface name
34 is "HTMLElement".
36 The HTML_OTHER macro is for values in the nsHTMLTag enum that are
37 not strictly tags.
39 Entries *must* use only lowercase characters.
41 Don't forget to update /editor/libeditor/HTMLEditUtils.cpp as well.
43 ** Break these invariants and bad things will happen. **
45 ******/
47 #define HTML_HTMLELEMENT_TAG(_tag) HTML_TAG(_tag, , )
49 HTML_TAG(a, Anchor, Anchor)
50 HTML_HTMLELEMENT_TAG(abbr)
51 HTML_HTMLELEMENT_TAG(acronym)
52 HTML_HTMLELEMENT_TAG(address)
53 HTML_TAG(applet, Unknown, Unknown)
54 HTML_TAG(area, Area, Area)
55 HTML_HTMLELEMENT_TAG(article)
56 HTML_HTMLELEMENT_TAG(aside)
57 HTML_TAG(audio, Audio, Audio)
58 HTML_HTMLELEMENT_TAG(b)
59 HTML_TAG(base, Shared, Base)
60 HTML_HTMLELEMENT_TAG(basefont)
61 HTML_HTMLELEMENT_TAG(bdi)
62 HTML_HTMLELEMENT_TAG(bdo)
63 HTML_TAG(bgsound, Unknown, Unknown)
64 HTML_HTMLELEMENT_TAG(big)
65 HTML_TAG(blockquote, Shared, Quote)
66 HTML_TAG(body, Body, Body)
67 HTML_TAG(br, BR, BR)
68 HTML_TAG(button, Button, Button)
69 HTML_TAG(canvas, Canvas, Canvas)
70 HTML_TAG(caption, TableCaption, TableCaption)
71 HTML_HTMLELEMENT_TAG(center)
72 HTML_HTMLELEMENT_TAG(cite)
73 HTML_HTMLELEMENT_TAG(code)
74 HTML_TAG(col, TableCol, TableCol)
75 HTML_TAG(colgroup, TableCol, TableCol)
76 HTML_TAG(data, Data, Data)
77 HTML_TAG(datalist, DataList, DataList)
78 HTML_HTMLELEMENT_TAG(dd)
79 HTML_TAG(del, Mod, Mod)
80 HTML_TAG(details, Details, Details)
81 HTML_HTMLELEMENT_TAG(dfn)
82 HTML_TAG(dialog, Dialog, Dialog)
83 HTML_TAG(dir, Shared, Directory)
84 HTML_TAG(div, Div, Div)
85 HTML_TAG(dl, SharedList, DList)
86 HTML_HTMLELEMENT_TAG(dt)
87 HTML_HTMLELEMENT_TAG(em)
88 HTML_TAG(embed, Embed, Embed)
89 HTML_TAG(fieldset, FieldSet, FieldSet)
90 HTML_HTMLELEMENT_TAG(figcaption)
91 HTML_HTMLELEMENT_TAG(figure)
92 HTML_TAG(font, Font, Font)
93 HTML_HTMLELEMENT_TAG(footer)
94 HTML_TAG(form, Form, Form)
95 HTML_TAG(frame, Frame, Frame)
96 HTML_TAG(frameset, FrameSet, FrameSet)
97 HTML_TAG(h1, Heading, Heading)
98 HTML_TAG(h2, Heading, Heading)
99 HTML_TAG(h3, Heading, Heading)
100 HTML_TAG(h4, Heading, Heading)
101 HTML_TAG(h5, Heading, Heading)
102 HTML_TAG(h6, Heading, Heading)
103 HTML_TAG(head, Shared, Head)
104 HTML_HTMLELEMENT_TAG(header)
105 HTML_HTMLELEMENT_TAG(hgroup)
106 HTML_TAG(hr, HR, HR)
107 HTML_TAG(html, Shared, Html)
108 HTML_HTMLELEMENT_TAG(i)
109 HTML_TAG(iframe, IFrame, IFrame)
110 HTML_HTMLELEMENT_TAG(image)
111 HTML_TAG(img, Image, Image)
112 HTML_TAG(input, Input, Input)
113 HTML_TAG(ins, Mod, Mod)
114 HTML_HTMLELEMENT_TAG(kbd)
115 HTML_TAG(keygen, Span, Span)
116 HTML_TAG(label, Label, Label)
117 HTML_TAG(legend, Legend, Legend)
118 HTML_TAG(li, LI, LI)
119 HTML_TAG(link, Link, Link)
120 HTML_TAG(listing, Pre, Pre)
121 HTML_HTMLELEMENT_TAG(main)
122 HTML_TAG(map, Map, Map)
123 HTML_HTMLELEMENT_TAG(mark)
124 HTML_TAG(marquee, Marquee, Marquee)
125 HTML_TAG(menu, Menu, Menu)
126 HTML_TAG(menuitem, MenuItem, MenuItem)
127 HTML_TAG(meta, Meta, Meta)
128 HTML_TAG(meter, Meter, Meter)
129 HTML_TAG(multicol, Unknown, Unknown)
130 HTML_HTMLELEMENT_TAG(nav)
131 HTML_HTMLELEMENT_TAG(nobr)
132 HTML_HTMLELEMENT_TAG(noembed)
133 HTML_HTMLELEMENT_TAG(noframes)
134 HTML_HTMLELEMENT_TAG(noscript)
135 HTML_TAG(object, Object, Object)
136 HTML_TAG(ol, SharedList, OList)
137 HTML_TAG(optgroup, OptGroup, OptGroup)
138 HTML_TAG(option, Option, Option)
139 HTML_TAG(output, Output, Output)
140 HTML_TAG(p, Paragraph, Paragraph)
141 HTML_TAG(param, Shared, Param)
142 HTML_TAG(picture, Picture, Picture)
143 HTML_HTMLELEMENT_TAG(plaintext)
144 HTML_TAG(pre, Pre, Pre)
145 HTML_TAG(progress, Progress, Progress)
146 HTML_TAG(q, Shared, Quote)
147 HTML_HTMLELEMENT_TAG(rb)
148 HTML_HTMLELEMENT_TAG(rp)
149 HTML_HTMLELEMENT_TAG(rt)
150 HTML_HTMLELEMENT_TAG(rtc)
151 HTML_HTMLELEMENT_TAG(ruby)
152 HTML_HTMLELEMENT_TAG(s)
153 HTML_HTMLELEMENT_TAG(samp)
154 HTML_TAG(script, Script, Script)
155 HTML_HTMLELEMENT_TAG(section)
156 HTML_TAG(select, Select, Select)
157 HTML_HTMLELEMENT_TAG(small)
158 HTML_TAG(slot, Slot, Slot)
159 HTML_TAG(source, Source, Source)
160 HTML_TAG(span, Span, Span)
161 HTML_HTMLELEMENT_TAG(strike)
162 HTML_HTMLELEMENT_TAG(strong)
163 HTML_TAG(style, Style, Style)
164 HTML_HTMLELEMENT_TAG(sub)
165 HTML_TAG(summary, Summary, )
166 HTML_HTMLELEMENT_TAG(sup)
167 HTML_TAG(table, Table, Table)
168 HTML_TAG(tbody, TableSection, TableSection)
169 HTML_TAG(td, TableCell, TableCell)
170 HTML_TAG(textarea, TextArea, TextArea)
171 HTML_TAG(tfoot, TableSection, TableSection)
172 HTML_TAG(th, TableCell, TableCell)
173 HTML_TAG(thead, TableSection, TableSection)
174 HTML_TAG(template, Template, Template)
175 HTML_TAG(time, Time, Time)
176 HTML_TAG(title, Title, Title)
177 HTML_TAG(tr, TableRow, TableRow)
178 HTML_TAG(track, Track, Track)
179 HTML_HTMLELEMENT_TAG(tt)
180 HTML_HTMLELEMENT_TAG(u)
181 HTML_TAG(ul, SharedList, UList)
182 HTML_HTMLELEMENT_TAG(var)
183 HTML_TAG(video, Video, Video)
184 HTML_HTMLELEMENT_TAG(wbr)
185 HTML_TAG(xmp, Pre, Pre)
187 /* These are not for tags. But they will be included in the nsHTMLTag
188 enum anyway */
190 HTML_OTHER(text)
191 HTML_OTHER(whitespace)
192 HTML_OTHER(newline)
193 HTML_OTHER(comment)
194 HTML_OTHER(entity)
195 HTML_OTHER(doctypeDecl)
196 HTML_OTHER(markupDecl)
197 HTML_OTHER(instruction)
199 #undef HTML_HTMLELEMENT_TAG