nokogumbo 1.4.8 → 1.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gumbo-parser/src/attribute.c +44 -0
- data/gumbo-parser/src/attribute.h +37 -0
- data/gumbo-parser/src/char_ref.c +23069 -0
- data/gumbo-parser/src/char_ref.h +60 -0
- data/gumbo-parser/src/char_ref.rl +2554 -0
- data/gumbo-parser/src/error.c +279 -0
- data/gumbo-parser/src/error.h +225 -0
- data/gumbo-parser/src/gumbo.h +671 -0
- data/gumbo-parser/src/insertion_mode.h +57 -0
- data/gumbo-parser/src/parser.c +4188 -0
- data/gumbo-parser/src/parser.h +57 -0
- data/gumbo-parser/src/string_buffer.c +110 -0
- data/gumbo-parser/src/string_buffer.h +84 -0
- data/gumbo-parser/src/string_piece.c +48 -0
- data/gumbo-parser/src/string_piece.h +38 -0
- data/gumbo-parser/src/tag.c +95 -0
- data/gumbo-parser/src/tag.in +150 -0
- data/gumbo-parser/src/tag_enum.h +153 -0
- data/gumbo-parser/src/tag_gperf.h +105 -0
- data/gumbo-parser/src/tag_sizes.h +4 -0
- data/gumbo-parser/src/tag_strings.h +153 -0
- data/gumbo-parser/src/token_type.h +41 -0
- data/gumbo-parser/src/tokenizer.c +2897 -0
- data/gumbo-parser/src/tokenizer.h +123 -0
- data/gumbo-parser/src/tokenizer_states.h +103 -0
- data/gumbo-parser/src/utf8.c +270 -0
- data/gumbo-parser/src/utf8.h +132 -0
- data/gumbo-parser/src/util.c +58 -0
- data/gumbo-parser/src/util.h +60 -0
- data/gumbo-parser/src/vector.c +123 -0
- data/gumbo-parser/src/vector.h +67 -0
- data/gumbo-parser/visualc/include/strings.h +4 -0
- metadata +40 -8
@@ -0,0 +1,153 @@
|
|
1
|
+
// Generated via `gentags.py src/tag.in`.
|
2
|
+
// Do not edit; edit src/tag.in instead.
|
3
|
+
// clang-format off
|
4
|
+
GUMBO_TAG_HTML,
|
5
|
+
GUMBO_TAG_HEAD,
|
6
|
+
GUMBO_TAG_TITLE,
|
7
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MALIGNMARK,
|
95
|
+
GUMBO_TAG_ANNOTATION_XML,
|
96
|
+
GUMBO_TAG_SVG,
|
97
|
+
GUMBO_TAG_FOREIGNOBJECT,
|
98
|
+
GUMBO_TAG_DESC,
|
99
|
+
GUMBO_TAG_TABLE,
|
100
|
+
GUMBO_TAG_CAPTION,
|
101
|
+
GUMBO_TAG_COLGROUP,
|
102
|
+
GUMBO_TAG_COL,
|
103
|
+
GUMBO_TAG_TBODY,
|
104
|
+
GUMBO_TAG_THEAD,
|
105
|
+
GUMBO_TAG_TFOOT,
|
106
|
+
GUMBO_TAG_TR,
|
107
|
+
GUMBO_TAG_TD,
|
108
|
+
GUMBO_TAG_TH,
|
109
|
+
GUMBO_TAG_FORM,
|
110
|
+
GUMBO_TAG_FIELDSET,
|
111
|
+
GUMBO_TAG_LEGEND,
|
112
|
+
GUMBO_TAG_LABEL,
|
113
|
+
GUMBO_TAG_INPUT,
|
114
|
+
GUMBO_TAG_BUTTON,
|
115
|
+
GUMBO_TAG_SELECT,
|
116
|
+
GUMBO_TAG_DATALIST,
|
117
|
+
GUMBO_TAG_OPTGROUP,
|
118
|
+
GUMBO_TAG_OPTION,
|
119
|
+
GUMBO_TAG_TEXTAREA,
|
120
|
+
GUMBO_TAG_KEYGEN,
|
121
|
+
GUMBO_TAG_OUTPUT,
|
122
|
+
GUMBO_TAG_PROGRESS,
|
123
|
+
GUMBO_TAG_METER,
|
124
|
+
GUMBO_TAG_DETAILS,
|
125
|
+
GUMBO_TAG_SUMMARY,
|
126
|
+
GUMBO_TAG_MENU,
|
127
|
+
GUMBO_TAG_MENUITEM,
|
128
|
+
GUMBO_TAG_APPLET,
|
129
|
+
GUMBO_TAG_ACRONYM,
|
130
|
+
GUMBO_TAG_BGSOUND,
|
131
|
+
GUMBO_TAG_DIR,
|
132
|
+
GUMBO_TAG_FRAME,
|
133
|
+
GUMBO_TAG_FRAMESET,
|
134
|
+
GUMBO_TAG_NOFRAMES,
|
135
|
+
GUMBO_TAG_ISINDEX,
|
136
|
+
GUMBO_TAG_LISTING,
|
137
|
+
GUMBO_TAG_XMP,
|
138
|
+
GUMBO_TAG_NEXTID,
|
139
|
+
GUMBO_TAG_NOEMBED,
|
140
|
+
GUMBO_TAG_PLAINTEXT,
|
141
|
+
GUMBO_TAG_RB,
|
142
|
+
GUMBO_TAG_STRIKE,
|
143
|
+
GUMBO_TAG_BASEFONT,
|
144
|
+
GUMBO_TAG_BIG,
|
145
|
+
GUMBO_TAG_BLINK,
|
146
|
+
GUMBO_TAG_CENTER,
|
147
|
+
GUMBO_TAG_FONT,
|
148
|
+
GUMBO_TAG_MARQUEE,
|
149
|
+
GUMBO_TAG_MULTICOL,
|
150
|
+
GUMBO_TAG_NOBR,
|
151
|
+
GUMBO_TAG_SPACER,
|
152
|
+
GUMBO_TAG_TT,
|
153
|
+
GUMBO_TAG_RTC,
|
@@ -0,0 +1,105 @@
|
|
1
|
+
static unsigned int tag_hash(
|
2
|
+
register const char *str, register unsigned int len) {
|
3
|
+
static unsigned short asso_values[] = {296, 296, 296, 296, 296, 296, 296, 296,
|
4
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
|
5
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
|
6
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 6, 4, 3, 1, 1, 0,
|
7
|
+
1, 0, 0, 296, 296, 296, 296, 296, 296, 296, 22, 73, 151, 4, 13, 59, 65, 2,
|
8
|
+
69, 0, 134, 9, 16, 52, 55, 28, 101, 0, 1, 6, 63, 126, 104, 93, 124, 296,
|
9
|
+
296, 296, 296, 296, 296, 296, 22, 73, 151, 4, 13, 59, 65, 2, 69, 0, 134,
|
10
|
+
9, 16, 52, 55, 28, 101, 0, 1, 6, 63, 126, 104, 93, 124, 296, 296, 296,
|
11
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
|
12
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
|
13
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
|
14
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
|
15
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
|
16
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
|
17
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
|
18
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
|
19
|
+
296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296, 296};
|
20
|
+
register unsigned int hval = len;
|
21
|
+
|
22
|
+
switch (hval) {
|
23
|
+
default:
|
24
|
+
hval += asso_values[(unsigned char) str[1] + 3];
|
25
|
+
/*FALLTHROUGH*/
|
26
|
+
case 1:
|
27
|
+
hval += asso_values[(unsigned char) str[0]];
|
28
|
+
break;
|
29
|
+
}
|
30
|
+
return hval + asso_values[(unsigned char) str[len - 1]];
|
31
|
+
}
|
32
|
+
|
33
|
+
static const unsigned char kGumboTagMap[] = {GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
34
|
+
GUMBO_TAG_LAST, GUMBO_TAG_S, GUMBO_TAG_H6, GUMBO_TAG_H5, GUMBO_TAG_H4,
|
35
|
+
GUMBO_TAG_H3, GUMBO_TAG_SPACER, GUMBO_TAG_H2, GUMBO_TAG_HEADER,
|
36
|
+
GUMBO_TAG_H1, GUMBO_TAG_HEAD, GUMBO_TAG_LAST, GUMBO_TAG_DETAILS,
|
37
|
+
GUMBO_TAG_SELECT, GUMBO_TAG_DIR, GUMBO_TAG_LAST, GUMBO_TAG_DEL,
|
38
|
+
GUMBO_TAG_LAST, GUMBO_TAG_SOURCE, GUMBO_TAG_LEGEND, GUMBO_TAG_DATALIST,
|
39
|
+
GUMBO_TAG_METER, GUMBO_TAG_MGLYPH, GUMBO_TAG_LAST, GUMBO_TAG_MATH,
|
40
|
+
GUMBO_TAG_LABEL, GUMBO_TAG_TABLE, GUMBO_TAG_TEMPLATE, GUMBO_TAG_LAST,
|
41
|
+
GUMBO_TAG_RP, GUMBO_TAG_TIME, GUMBO_TAG_TITLE, GUMBO_TAG_DATA,
|
42
|
+
GUMBO_TAG_APPLET, GUMBO_TAG_HGROUP, GUMBO_TAG_SAMP, GUMBO_TAG_TEXTAREA,
|
43
|
+
GUMBO_TAG_ABBR, GUMBO_TAG_MARQUEE, GUMBO_TAG_LAST, GUMBO_TAG_MENUITEM,
|
44
|
+
GUMBO_TAG_SMALL, GUMBO_TAG_META, GUMBO_TAG_A, GUMBO_TAG_LAST,
|
45
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_EMBED,
|
46
|
+
GUMBO_TAG_MAP, GUMBO_TAG_LAST, GUMBO_TAG_PARAM, GUMBO_TAG_LAST,
|
47
|
+
GUMBO_TAG_LAST, GUMBO_TAG_NOBR, GUMBO_TAG_P, GUMBO_TAG_SPAN, GUMBO_TAG_EM,
|
48
|
+
GUMBO_TAG_LAST, GUMBO_TAG_NOFRAMES, GUMBO_TAG_SECTION, GUMBO_TAG_NOEMBED,
|
49
|
+
GUMBO_TAG_NEXTID, GUMBO_TAG_FOOTER, GUMBO_TAG_NOSCRIPT, GUMBO_TAG_HR,
|
50
|
+
GUMBO_TAG_LAST, GUMBO_TAG_FONT, GUMBO_TAG_DL, GUMBO_TAG_TR,
|
51
|
+
GUMBO_TAG_SCRIPT, GUMBO_TAG_MO, GUMBO_TAG_LAST, GUMBO_TAG_DD,
|
52
|
+
GUMBO_TAG_MAIN, GUMBO_TAG_TD, GUMBO_TAG_FOREIGNOBJECT, GUMBO_TAG_FORM,
|
53
|
+
GUMBO_TAG_OBJECT, GUMBO_TAG_LAST, GUMBO_TAG_FIELDSET, GUMBO_TAG_LAST,
|
54
|
+
GUMBO_TAG_BGSOUND, GUMBO_TAG_MENU, GUMBO_TAG_TFOOT, GUMBO_TAG_FIGURE,
|
55
|
+
GUMBO_TAG_RB, GUMBO_TAG_LI, GUMBO_TAG_LISTING, GUMBO_TAG_BASEFONT,
|
56
|
+
GUMBO_TAG_OPTGROUP, GUMBO_TAG_LAST, GUMBO_TAG_BASE, GUMBO_TAG_ADDRESS,
|
57
|
+
GUMBO_TAG_MI, GUMBO_TAG_LAST, GUMBO_TAG_PLAINTEXT, GUMBO_TAG_LAST,
|
58
|
+
GUMBO_TAG_PROGRESS, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
59
|
+
GUMBO_TAG_ACRONYM, GUMBO_TAG_ARTICLE, GUMBO_TAG_LAST, GUMBO_TAG_PRE,
|
60
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_AREA,
|
61
|
+
GUMBO_TAG_RT, GUMBO_TAG_LAST, GUMBO_TAG_OPTION, GUMBO_TAG_IMAGE,
|
62
|
+
GUMBO_TAG_DT, GUMBO_TAG_LAST, GUMBO_TAG_TT, GUMBO_TAG_HTML, GUMBO_TAG_WBR,
|
63
|
+
GUMBO_TAG_OL, GUMBO_TAG_LAST, GUMBO_TAG_STYLE, GUMBO_TAG_STRIKE,
|
64
|
+
GUMBO_TAG_SUP, GUMBO_TAG_MULTICOL, GUMBO_TAG_U, GUMBO_TAG_DFN, GUMBO_TAG_UL,
|
65
|
+
GUMBO_TAG_FIGCAPTION, GUMBO_TAG_MTEXT, GUMBO_TAG_LAST, GUMBO_TAG_VAR,
|
66
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_FRAMESET, GUMBO_TAG_LAST,
|
67
|
+
GUMBO_TAG_BR, GUMBO_TAG_I, GUMBO_TAG_FRAME, GUMBO_TAG_LAST, GUMBO_TAG_DIV,
|
68
|
+
GUMBO_TAG_LAST, GUMBO_TAG_TH, GUMBO_TAG_MS, GUMBO_TAG_ANNOTATION_XML,
|
69
|
+
GUMBO_TAG_B, GUMBO_TAG_TBODY, GUMBO_TAG_THEAD, GUMBO_TAG_BIG,
|
70
|
+
GUMBO_TAG_BLOCKQUOTE, GUMBO_TAG_XMP, GUMBO_TAG_LAST, GUMBO_TAG_KBD,
|
71
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LINK, GUMBO_TAG_IFRAME, GUMBO_TAG_MARK,
|
72
|
+
GUMBO_TAG_CENTER, GUMBO_TAG_OUTPUT, GUMBO_TAG_DESC, GUMBO_TAG_CANVAS,
|
73
|
+
GUMBO_TAG_COL, GUMBO_TAG_MALIGNMARK, GUMBO_TAG_IMG, GUMBO_TAG_ASIDE,
|
74
|
+
GUMBO_TAG_LAST, GUMBO_TAG_CODE, GUMBO_TAG_LAST, GUMBO_TAG_SUB, GUMBO_TAG_MN,
|
75
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_INS, GUMBO_TAG_AUDIO,
|
76
|
+
GUMBO_TAG_STRONG, GUMBO_TAG_CITE, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
77
|
+
GUMBO_TAG_LAST, GUMBO_TAG_INPUT, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
78
|
+
GUMBO_TAG_LAST, GUMBO_TAG_NAV, GUMBO_TAG_LAST, GUMBO_TAG_COLGROUP,
|
79
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
80
|
+
GUMBO_TAG_LAST, GUMBO_TAG_SVG, GUMBO_TAG_KEYGEN, GUMBO_TAG_VIDEO,
|
81
|
+
GUMBO_TAG_BDO, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
82
|
+
GUMBO_TAG_LAST, GUMBO_TAG_BODY, GUMBO_TAG_LAST, GUMBO_TAG_Q, GUMBO_TAG_LAST,
|
83
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_TRACK,
|
84
|
+
GUMBO_TAG_LAST, GUMBO_TAG_BDI, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
85
|
+
GUMBO_TAG_LAST, GUMBO_TAG_CAPTION, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
86
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
87
|
+
GUMBO_TAG_RUBY, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_BUTTON,
|
88
|
+
GUMBO_TAG_SUMMARY, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
89
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
90
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
91
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
92
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
93
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
94
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
95
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
96
|
+
GUMBO_TAG_LAST, GUMBO_TAG_RTC, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
97
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
98
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_BLINK, GUMBO_TAG_LAST,
|
99
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
100
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
101
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
102
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
103
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
104
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_LAST,
|
105
|
+
GUMBO_TAG_LAST, GUMBO_TAG_LAST, GUMBO_TAG_ISINDEX};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
// Generated via `gentags.py src/tag.in`.
|
2
|
+
// Do not edit; edit src/tag.in instead.
|
3
|
+
// clang-format off
|
4
|
+
4, 4, 5, 4, 4, 4, 5, 6, 8, 8, 4, 7, 7, 3, 5, 2, 2, 2, 2, 2, 2, 6, 6, 6, 7, 1, 2, 3, 10, 2, 2, 2, 2, 2, 2, 6, 10, 4, 3, 1, 2, 6, 5, 1, 4, 1, 3, 4, 4, 4, 4, 3, 4, 3, 3, 3, 1, 1, 1, 4, 4, 2, 2, 3, 3, 4, 2, 3, 3, 3, 5, 3, 6, 5, 6, 5, 5, 5, 6, 5, 6, 3, 4, 4, 2, 2, 2, 2, 5, 6, 10, 14, 3, 13, 4, 5, 7, 8, 3, 5, 5, 5, 2, 2, 2, 4, 8, 6, 5, 5, 6, 6, 8, 8, 6, 8, 6, 6, 8, 5, 7, 7, 4, 8, 6, 7, 7, 3, 5, 8, 8, 7, 7, 3, 6, 7, 9, 2, 6, 8, 3, 5, 6, 4, 7, 8, 4, 6, 2, 3,
|
@@ -0,0 +1,153 @@
|
|
1
|
+
// Generated via `gentags.py src/tag.in`.
|
2
|
+
// Do not edit; edit src/tag.in instead.
|
3
|
+
// clang-format off
|
4
|
+
"html",
|
5
|
+
"head",
|
6
|
+
"title",
|
7
|
+
"base",
|
8
|
+
"link",
|
9
|
+
"meta",
|
10
|
+
"style",
|
11
|
+
"script",
|
12
|
+
"noscript",
|
13
|
+
"template",
|
14
|
+
"body",
|
15
|
+
"article",
|
16
|
+
"section",
|
17
|
+
"nav",
|
18
|
+
"aside",
|
19
|
+
"h1",
|
20
|
+
"h2",
|
21
|
+
"h3",
|
22
|
+
"h4",
|
23
|
+
"h5",
|
24
|
+
"h6",
|
25
|
+
"hgroup",
|
26
|
+
"header",
|
27
|
+
"footer",
|
28
|
+
"address",
|
29
|
+
"p",
|
30
|
+
"hr",
|
31
|
+
"pre",
|
32
|
+
"blockquote",
|
33
|
+
"ol",
|
34
|
+
"ul",
|
35
|
+
"li",
|
36
|
+
"dl",
|
37
|
+
"dt",
|
38
|
+
"dd",
|
39
|
+
"figure",
|
40
|
+
"figcaption",
|
41
|
+
"main",
|
42
|
+
"div",
|
43
|
+
"a",
|
44
|
+
"em",
|
45
|
+
"strong",
|
46
|
+
"small",
|
47
|
+
"s",
|
48
|
+
"cite",
|
49
|
+
"q",
|
50
|
+
"dfn",
|
51
|
+
"abbr",
|
52
|
+
"data",
|
53
|
+
"time",
|
54
|
+
"code",
|
55
|
+
"var",
|
56
|
+
"samp",
|
57
|
+
"kbd",
|
58
|
+
"sub",
|
59
|
+
"sup",
|
60
|
+
"i",
|
61
|
+
"b",
|
62
|
+
"u",
|
63
|
+
"mark",
|
64
|
+
"ruby",
|
65
|
+
"rt",
|
66
|
+
"rp",
|
67
|
+
"bdi",
|
68
|
+
"bdo",
|
69
|
+
"span",
|
70
|
+
"br",
|
71
|
+
"wbr",
|
72
|
+
"ins",
|
73
|
+
"del",
|
74
|
+
"image",
|
75
|
+
"img",
|
76
|
+
"iframe",
|
77
|
+
"embed",
|
78
|
+
"object",
|
79
|
+
"param",
|
80
|
+
"video",
|
81
|
+
"audio",
|
82
|
+
"source",
|
83
|
+
"track",
|
84
|
+
"canvas",
|
85
|
+
"map",
|
86
|
+
"area",
|
87
|
+
"math",
|
88
|
+
"mi",
|
89
|
+
"mo",
|
90
|
+
"mn",
|
91
|
+
"ms",
|
92
|
+
"mtext",
|
93
|
+
"mglyph",
|
94
|
+
"malignmark",
|
95
|
+
"annotation-xml",
|
96
|
+
"svg",
|
97
|
+
"foreignobject",
|
98
|
+
"desc",
|
99
|
+
"table",
|
100
|
+
"caption",
|
101
|
+
"colgroup",
|
102
|
+
"col",
|
103
|
+
"tbody",
|
104
|
+
"thead",
|
105
|
+
"tfoot",
|
106
|
+
"tr",
|
107
|
+
"td",
|
108
|
+
"th",
|
109
|
+
"form",
|
110
|
+
"fieldset",
|
111
|
+
"legend",
|
112
|
+
"label",
|
113
|
+
"input",
|
114
|
+
"button",
|
115
|
+
"select",
|
116
|
+
"datalist",
|
117
|
+
"optgroup",
|
118
|
+
"option",
|
119
|
+
"textarea",
|
120
|
+
"keygen",
|
121
|
+
"output",
|
122
|
+
"progress",
|
123
|
+
"meter",
|
124
|
+
"details",
|
125
|
+
"summary",
|
126
|
+
"menu",
|
127
|
+
"menuitem",
|
128
|
+
"applet",
|
129
|
+
"acronym",
|
130
|
+
"bgsound",
|
131
|
+
"dir",
|
132
|
+
"frame",
|
133
|
+
"frameset",
|
134
|
+
"noframes",
|
135
|
+
"isindex",
|
136
|
+
"listing",
|
137
|
+
"xmp",
|
138
|
+
"nextid",
|
139
|
+
"noembed",
|
140
|
+
"plaintext",
|
141
|
+
"rb",
|
142
|
+
"strike",
|
143
|
+
"basefont",
|
144
|
+
"big",
|
145
|
+
"blink",
|
146
|
+
"center",
|
147
|
+
"font",
|
148
|
+
"marquee",
|
149
|
+
"multicol",
|
150
|
+
"nobr",
|
151
|
+
"spacer",
|
152
|
+
"tt",
|
153
|
+
"rtc",
|
@@ -0,0 +1,41 @@
|
|
1
|
+
// Copyright 2011 Google Inc. All Rights Reserved.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
//
|
15
|
+
// Author: jdtang@google.com (Jonathan Tang)
|
16
|
+
|
17
|
+
#ifndef GUMBO_TOKEN_TYPE_H_
|
18
|
+
#define GUMBO_TOKEN_TYPE_H_
|
19
|
+
|
20
|
+
#ifdef __cplusplus
|
21
|
+
extern "C" {
|
22
|
+
#endif
|
23
|
+
|
24
|
+
// An enum representing the type of token.
|
25
|
+
typedef enum {
|
26
|
+
GUMBO_TOKEN_DOCTYPE,
|
27
|
+
GUMBO_TOKEN_START_TAG,
|
28
|
+
GUMBO_TOKEN_END_TAG,
|
29
|
+
GUMBO_TOKEN_COMMENT,
|
30
|
+
GUMBO_TOKEN_WHITESPACE,
|
31
|
+
GUMBO_TOKEN_CHARACTER,
|
32
|
+
GUMBO_TOKEN_CDATA,
|
33
|
+
GUMBO_TOKEN_NULL,
|
34
|
+
GUMBO_TOKEN_EOF
|
35
|
+
} GumboTokenType;
|
36
|
+
|
37
|
+
#ifdef __cplusplus
|
38
|
+
} // extern C
|
39
|
+
#endif
|
40
|
+
|
41
|
+
#endif // GUMBO_TOKEN_TYPE_H_
|