summaryrefslogtreecommitdiff
path: root/src/treebuilder/element-type.gperf
blob: d4f2aa22c5e6420cac93369a3c944e7442c8cc5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*
 * This file is part of Hubbub.
 * Licensed under the MIT License,
 *                http://www.opensource.org/licenses/mit-license.php
 * Copyright 2021 Michael Drake <tlsa@netsurf-browser.org>
 */

%language=ANSI-C
%compare-strncmp
%readonly-tables
%ignore-case
%struct-type
%switch=1
%define hash-function-name hubbub_element_type_hash
%define lookup-function-name hubbub_element_type_lookup

%{
#include <string.h>

#include "treebuilder/element-type.h"

%}

struct element_type_map;
%%
a,                   A
address,             ADDRESS
annotation-xml,      ANNOTATION_XML
applet,              APPLET
area,                AREA
article,             ARTICLE
aside,               ASIDE
b,                   B
base,                BASE
basefont,            BASEFONT
bgsound,             BGSOUND
big,                 BIG
blockquote,          BLOCKQUOTE
body,                BODY
br,                  BR
button,              BUTTON
caption,             CAPTION
center,              CENTER
col,                 COL
colgroup,            COLGROUP
command,             COMMAND
dd,                  DD
desc,                DESC
details,             DETAILS
dialog,              DIALOG
dir,                 DIR
div,                 DIV
dl,                  DL
dt,                  DT
em,                  EM
embed,               EMBED
fieldset,            FIELDSET
figcaption,          FIGCAPTION
figure,              FIGURE
font,                FONT
footer,              FOOTER
foreignobject,       FOREIGNOBJECT
form,                FORM
frame,               FRAME
frameset,            FRAMESET
h1,                  H1
h2,                  H2
h3,                  H3
h4,                  H4
h5,                  H5
h6,                  H6
head,                HEAD
hr,                  HR
html,                HTML
i,                   I
iframe,              IFRAME
image,               IMAGE
img,                 IMG
input,               INPUT
isindex,             ISINDEX
li,                  LI
link,                LINK
listing,             LISTING
malignmark,          MALIGNMARK
marquee,             MARQUEE
math,                MATH
menu,                MENU
meta,                META
mglyph,              MGLYPH
mi,                  MI
mn,                  MN
mo,                  MO
ms,                  MS
mtext,               MTEXT
nobr,                NOBR
noembed,             NOEMBED
noframes,            NOFRAMES
noscript,            NOSCRIPT
object,              OBJECT
ol,                  OL
optgroup,            OPTGROUP
option,              OPTION
output,              OUTPUT
p,                   P
param,               PARAM
plaintext,           PLAINTEXT
pre,                 PRE
s,                   S
script,              SCRIPT
select,              SELECT
small,               SMALL
spacer,              SPACER
strike,              STRIKE
strong,              STRONG
style,               STYLE
summary,             SUMMARY
svg,                 SVG
table,               TABLE
tbody,               TBODY
td,                  TD
textarea,            TEXTAREA
tfoot,               TFOOT
th,                  TH
thead,               THEAD
title,               TITLE
tr,                  TR
tt,                  TT
u,                   U
ul,                  UL
wbr,                 WBR
xmp,                 XMP