php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
in_caption.c
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018-2019 Alexander Borisov
3 *
4 * Author: Alexander Borisov <borisov@lexbor.com>
5 */
6
10
11
12lxb_inline bool
45
46/*
47 * A start tag whose tag name is one of: "caption", "col", "colgroup", "tbody",
48 * "td", "tfoot", "th", "thead", "tr"
49 * An end tag whose tag name is "table"
50 */
51lxb_inline bool
84
85/*
86 * "body", "col", "colgroup", "html", "tbody", "td", "tfoot", "th", "thead",
87 * "tr"
88 */
89lxb_inline bool
97
98lxb_inline bool
104
105lxb_inline bool
111
112bool
114 lxb_html_token_t *token)
115{
116 if (token->type & LXB_HTML_TOKEN_TYPE_CLOSE) {
117 switch (token->tag_id) {
118 case LXB_TAG_CAPTION:
120 token);
121 case LXB_TAG_TABLE:
123 token);
124 case LXB_TAG_BODY:
125 case LXB_TAG_COL:
126 case LXB_TAG_COLGROUP:
127 case LXB_TAG_HTML:
128 case LXB_TAG_TBODY:
129 case LXB_TAG_TD:
130 case LXB_TAG_TFOOT:
131 case LXB_TAG_TH:
132 case LXB_TAG_THEAD:
133 case LXB_TAG_TR:
135 token);
136 default:
138 token);
139 }
140 }
141
142 switch (token->tag_id) {
143 case LXB_TAG_CAPTION:
144 case LXB_TAG_COL:
145 case LXB_TAG_COLGROUP:
146 case LXB_TAG_TBODY:
147 case LXB_TAG_TD:
148 case LXB_TAG_TFOOT:
149 case LXB_TAG_TH:
150 case LXB_TAG_THEAD:
151 case LXB_TAG_TR:
153 token);
154 default:
156 token);
157 }
158}
void lxb_html_tree_active_formatting_up_to_last_marker(lxb_html_tree_t *tree)
struct lxb_dom_node lxb_dom_node_t
Definition interface.h:38
#define NULL
Definition gdcache.h:45
struct lxb_html_tree lxb_html_tree_t
Definition base.h:28
@ LXB_HTML_TAG_CATEGORY_SCOPE_TABLE
Definition tag.h:31
@ LXB_HTML_TOKEN_TYPE_CLOSE
Definition token.h:27
@ LXB_HTML_RULES_ERROR_UNCLTO
Definition error.h:24
@ LXB_HTML_RULES_ERROR_UNELINOPELST
Definition error.h:66
@ LXB_HTML_RULES_ERROR_MIELINSC
Definition error.h:72
lxb_inline bool lxb_html_tree_insertion_mode_in_caption_ct_open_closed(lxb_html_tree_t *tree, lxb_html_token_t *token)
Definition in_caption.c:52
lxb_inline bool lxb_html_tree_insertion_mode_in_caption_anything_else_closed(lxb_html_tree_t *tree, lxb_html_token_t *token)
Definition in_caption.c:106
lxb_inline bool lxb_html_tree_insertion_mode_in_caption_caption_closed(lxb_html_tree_t *tree, lxb_html_token_t *token)
Definition in_caption.c:13
bool lxb_html_tree_insertion_mode_in_caption(lxb_html_tree_t *tree, lxb_html_token_t *token)
Definition in_caption.c:113
lxb_inline bool lxb_html_tree_insertion_mode_in_caption_bcht_closed(lxb_html_tree_t *tree, lxb_html_token_t *token)
Definition in_caption.c:90
lxb_inline bool lxb_html_tree_insertion_mode_in_caption_anything_else(lxb_html_tree_t *tree, lxb_html_token_t *token)
Definition in_caption.c:99
LXB_API bool lxb_html_tree_insertion_mode_in_table(lxb_html_tree_t *tree, lxb_html_token_t *token)
Definition in_table.c:371
LXB_API bool lxb_html_tree_insertion_mode_in_body(lxb_html_tree_t *tree, lxb_html_token_t *token)
Definition in_body.c:1685
void lxb_html_tree_generate_implied_end_tags(lxb_html_tree_t *tree, lxb_tag_id_t ex_tag, lxb_ns_id_t ex_ns)
Definition tree.c:914
lxb_dom_node_t * lxb_html_tree_element_in_scope(lxb_html_tree_t *tree, lxb_tag_id_t tag_id, lxb_ns_id_t ns, lxb_html_tag_category_t ct)
Definition tree.c:1152
void lxb_html_tree_parse_error(lxb_html_tree_t *tree, lxb_html_token_t *token, lxb_html_tree_error_id_t id)
Definition tree.c:237
@ LXB_NS__UNDEF
Definition const.h:24
@ LXB_NS_HTML
Definition const.h:26
void lxb_html_tree_open_elements_pop_until_tag_id(lxb_html_tree_t *tree, lxb_tag_id_t tag_id, lxb_ns_id_t ns, bool exclude)
lxb_html_token_type_t type
Definition token.h:49
lxb_tag_id_t tag_id
Definition token.h:48
lxb_html_tree_insertion_mode_f mode
Definition tree.h:62
@ LXB_TAG_COL
Definition const.h:64
@ LXB_TAG_TD
Definition const.h:202
@ LXB_TAG_HTML
Definition const.h:125
@ LXB_TAG_THEAD
Definition const.h:208
@ LXB_TAG_CAPTION
Definition const.h:59
@ LXB_TAG_BODY
Definition const.h:55
@ LXB_TAG_TBODY
Definition const.h:201
@ LXB_TAG_COLGROUP
Definition const.h:65
@ LXB_TAG_TABLE
Definition const.h:200
@ LXB_TAG_TFOOT
Definition const.h:206
@ LXB_TAG_TH
Definition const.h:207
@ LXB_TAG_TR
Definition const.h:211
@ LXB_TAG__UNDEF
Definition const.h:24
lxb_inline lxb_dom_node_t * lxb_html_tree_current_node(lxb_html_tree_t *tree)
Definition tree.h:286
lxb_inline bool lxb_html_tree_node_is(lxb_dom_node_t *node, lxb_tag_id_t tag_id)
Definition tree.h:280
#define lxb_inline
Definition types.h:21