php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
in_select_in_table.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
9
10
11/*
12 * "caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th"
13 */
14lxb_inline bool
27
28/*
29 * "caption", "table", "tbody", "tfoot", "thead", "tr", "td", "th"
30 */
31lxb_inline bool
52
53lxb_inline bool
59
60lxb_inline bool
67
68bool
70 lxb_html_token_t *token)
71{
72 if (token->tag_id >= LXB_TAG__LAST_ENTRY) {
73 if (token->type & LXB_HTML_TOKEN_TYPE_CLOSE) {
75 token);
76 }
77
79 token);
80 }
81
82 if (token->type & LXB_HTML_TOKEN_TYPE_CLOSE) {
83 switch (token->tag_id) {
84 case LXB_TAG_CAPTION:
85 case LXB_TAG_TABLE:
86 case LXB_TAG_TBODY:
87 case LXB_TAG_TFOOT:
88 case LXB_TAG_THEAD:
89 case LXB_TAG_TR:
90 case LXB_TAG_TH:
91 case LXB_TAG_TD:
93 token);
94 default:
96 token);
97 }
98 }
99
100 switch (token->tag_id) {
101 case LXB_TAG_CAPTION:
102 case LXB_TAG_TABLE:
103 case LXB_TAG_TBODY:
104 case LXB_TAG_TFOOT:
105 case LXB_TAG_THEAD:
106 case LXB_TAG_TR:
107 case LXB_TAG_TH:
108 case LXB_TAG_TD:
110 token);
111 default:
113 token);
114 }
115}
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_UNTO
Definition error.h:22
lxb_inline bool lxb_html_tree_insertion_mode_in_select_in_table_anything_else(lxb_html_tree_t *tree, lxb_html_token_t *token)
bool lxb_html_tree_insertion_mode_in_select_in_table(lxb_html_tree_t *tree, lxb_html_token_t *token)
lxb_inline bool lxb_html_tree_insertion_mode_in_select_in_table_ct(lxb_html_tree_t *tree, lxb_html_token_t *token)
lxb_inline bool lxb_html_tree_insertion_mode_in_select_in_table_ct_closed(lxb_html_tree_t *tree, lxb_html_token_t *token)
lxb_inline bool lxb_html_tree_insertion_mode_in_select_in_table_anything_else_closed(lxb_html_tree_t *tree, lxb_html_token_t *token)
LXB_API bool lxb_html_tree_insertion_mode_in_select(lxb_html_tree_t *tree, lxb_html_token_t *token)
Definition in_select.c:311
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
void lxb_html_tree_reset_insertion_mode_appropriately(lxb_html_tree_t *tree)
Definition tree.c:999
@ 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_TAG_TD
Definition const.h:202
@ LXB_TAG_THEAD
Definition const.h:208
@ LXB_TAG_CAPTION
Definition const.h:59
@ LXB_TAG_TBODY
Definition const.h:201
@ LXB_TAG__LAST_ENTRY
Definition const.h:220
@ 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_SELECT
Definition const.h:187
#define lxb_inline
Definition types.h:21