Home
last modified time | relevance | path

Searched refs:tree (Results 1 – 25 of 101) sorted by relevance

12345

/PHP-8.2/ext/dom/lexbor/lexbor/html/tree/insertion_mode/
H A Din_body.c29 tree->mode = tree->original_mode; in lxb_html_tree_insertion_mode_in_body_skip_new_line()
56 tree->mode = tree->original_mode; in lxb_html_tree_insertion_mode_in_body_skip_new_line_textarea()
116 tree->status = lxb_html_tree_active_formatting_reconstruct_elements(tree); in lxb_html_tree_insertion_mode_in_body_text_append()
137 tree->status = lxb_html_tree_insert_character_for_data(tree, str, NULL); in lxb_html_tree_insertion_mode_in_body_text_append()
187 tree->status = lxb_html_tree_append_attributes(tree, html, token, in lxb_html_tree_insertion_mode_in_body_html()
292 tree->status = lxb_html_tree_stop_parsing(tree); in lxb_html_tree_insertion_mode_in_body_eof()
444 tree->original_mode = tree->mode; in lxb_html_tree_insertion_mode_in_body_pre_listing()
1056 lxb_html_tree_adoption_agency_algorithm(tree, token, &tree->status); in lxb_html_tree_insertion_mode_in_body_abcefinstu_closed()
1092 tree->status = lxb_html_tree_active_formatting_push_marker(tree); in lxb_html_tree_insertion_mode_in_body_amo()
1323 tree->original_mode = tree->mode; in lxb_html_tree_insertion_mode_in_body_textarea()
[all …]
H A Din_head.c189 tree->status = lxb_html_tree_insert_character(tree, &ws_token, in lxb_html_tree_insertion_mode_in_head_open()
250 tree->status = LXB_STATUS_ERROR; in lxb_html_tree_insertion_mode_in_head_script()
273 tree->status = lxb_html_tree_open_elements_push(tree, in lxb_html_tree_insertion_mode_in_head_script()
275 if (tree->status != LXB_HTML_STATUS_OK) { in lxb_html_tree_insertion_mode_in_head_script()
292 tree->original_mode = tree->mode; in lxb_html_tree_insertion_mode_in_head_script()
311 tree->status = lxb_html_tree_active_formatting_push_marker(tree); in lxb_html_tree_insertion_mode_in_head_template()
312 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_head_template()
318 tree->frameset_ok = false; in lxb_html_tree_insertion_mode_in_head_template()
321 tree->status = lxb_html_tree_template_insertion_push(tree, in lxb_html_tree_insertion_mode_in_head_template()
323 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_head_template()
[all …]
H A Din_template.c22 tree->status = lxb_html_tree_template_insertion_push(tree, in lxb_html_tree_insertion_mode_in_template_ct()
24 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_template_ct()
39 tree->status = lxb_html_tree_template_insertion_push(tree, in lxb_html_tree_insertion_mode_in_template_col()
41 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_template_col()
56 tree->status = lxb_html_tree_template_insertion_push(tree, in lxb_html_tree_insertion_mode_in_template_tr()
58 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_template_tr()
76 tree->status = lxb_html_tree_template_insertion_push(tree, in lxb_html_tree_insertion_mode_in_template_tdth()
78 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_template_tdth()
96 tree->status = lxb_html_tree_stop_parsing(tree); in lxb_html_tree_insertion_mode_in_template_end_of_file()
122 tree->status = lxb_html_tree_template_insertion_push(tree, in lxb_html_tree_insertion_mode_in_template_anything_else()
[all …]
H A Din_table.c22 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_clear_stack_back_to_table_context()
23 current = lxb_html_tree_current_node(tree); in lxb_html_tree_clear_stack_back_to_table_context()
40 tree->pending_table.text_list->length = 0; in lxb_html_tree_insertion_mode_in_table_text_open()
41 tree->pending_table.have_non_ws = false; in lxb_html_tree_insertion_mode_in_table_text_open()
43 tree->original_mode = tree->mode; in lxb_html_tree_insertion_mode_in_table_text_open()
85 tree->status = lxb_html_tree_active_formatting_push_marker(tree); in lxb_html_tree_insertion_mode_in_table_caption()
86 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_table_caption()
315 if (tree->form != NULL) { in lxb_html_tree_insertion_mode_in_table_form()
351 tree->foster_parenting = true; in lxb_html_tree_insertion_mode_in_table_anything_else()
354 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_table_anything_else()
[all …]
H A Din_select.c18 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_select_text()
29 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_select_text()
30 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_in_select_text()
40 tree->status = lxb_html_tree_insert_character_for_data(tree, &str, NULL); in lxb_html_tree_insertion_mode_in_select_text()
41 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_select_text()
88 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_in_select_option()
112 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_select_optgroup()
135 && tree->open_elements->length > 1) in lxb_html_tree_insertion_mode_in_select_optgroup_closed()
144 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_select_optgroup_closed()
152 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_in_select_optgroup_closed()
[all …]
H A Din_column_group.c18 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_column_group_anything_else()
24 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_in_column_group_anything_else()
38 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_column_group_text()
39 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_in_column_group_text()
43 tree->status = lxb_html_tree_insert_character(tree, &ws_token, NULL); in lxb_html_tree_insertion_mode_in_column_group_text()
44 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_column_group_text()
67 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_in_column_group_comment()
90 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_in_column_group_col()
93 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_in_column_group_col()
106 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_column_group_colgroup_closed()
[all …]
H A Dafter_head.c56 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_after_head_open()
74 tree->has_explicit_body_tag = true; in lxb_html_tree_insertion_mode_after_head_open()
75 tree->frameset_ok = false; in lxb_html_tree_insertion_mode_after_head_open()
110 tree->status = LXB_STATUS_ERROR; in lxb_html_tree_insertion_mode_after_head_open()
117 tree->status = lxb_html_tree_open_elements_push(tree, head_node); in lxb_html_tree_insertion_mode_after_head_open()
118 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_after_head_open()
123 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_after_head_open()
133 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_after_head_open()
141 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_after_head_open()
146 tree->status = lxb_html_tree_insert_character(tree, &ws_token, in lxb_html_tree_insertion_mode_after_head_open()
[all …]
H A Din_frameset.c19 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_frameset()
22 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_frameset()
27 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_in_frameset()
29 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_frameset()
31 if (tree->fragment == NULL in lxb_html_tree_insertion_mode_in_frameset()
58 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_frameset()
88 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_in_frameset()
105 tree->status = lxb_html_tree_stop_parsing(tree); in lxb_html_tree_insertion_mode_in_frameset()
106 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_frameset()
119 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_frameset()
[all …]
H A Dbefore_html.c45 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_before_html_open()
55 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_before_html_open()
76 tree->status = lxb_html_tree_insertion_mode_before_html_html(tree, in lxb_html_tree_insertion_mode_before_html_open()
78 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_before_html_open()
82 tree->has_explicit_html_tag = true; in lxb_html_tree_insertion_mode_before_html_open()
91 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_before_html_open()
119 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_before_html_closed()
135 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_before_html_anything_else()
138 tree->status = lxb_html_tree_insertion_mode_before_html_html(tree, in lxb_html_tree_insertion_mode_before_html_anything_else()
140 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_before_html_anything_else()
[all …]
H A Dtext.c22 tree->status = lxb_html_tree_insert_character(tree, token, NULL); in lxb_html_tree_insertion_mode_text()
23 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_text()
33 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_text()
44 tree->mode = tree->original_mode; in lxb_html_tree_insertion_mode_text()
53 tree->mode = tree->original_mode; in lxb_html_tree_insertion_mode_text()
60 tree->mode = tree->original_mode; in lxb_html_tree_insertion_mode_text()
62 if (!tree->document->css_init) { in lxb_html_tree_insertion_mode_text()
69 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_text()
73 tree->status = lxb_html_document_stylesheet_add(tree->document, in lxb_html_tree_insertion_mode_text()
75 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_text()
[all …]
H A Din_row.c22 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_clear_stack_back_to_table_row()
23 current = lxb_html_tree_current_node(tree); in lxb_html_tree_clear_stack_back_to_table_row()
36 lxb_html_tree_clear_stack_back_to_table_row(tree); in lxb_html_tree_insertion_mode_in_row_thtd()
42 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_in_row_thtd()
45 tree->mode = lxb_html_tree_insertion_mode_in_cell; in lxb_html_tree_insertion_mode_in_row_thtd()
47 tree->status = lxb_html_tree_active_formatting_push_marker(tree); in lxb_html_tree_insertion_mode_in_row_thtd()
48 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_row_thtd()
49 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_in_row_thtd()
70 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_in_row_tr_closed()
97 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_in_row_ct_open_closed()
[all …]
H A Dbefore_head.c49 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_before_head_open()
56 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_before_head_open()
64 tree->status = lxb_html_tree_insertion_mode_before_head_head(tree, in lxb_html_tree_insertion_mode_before_head_open()
66 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_before_head_open()
70 tree->has_explicit_head_tag = true; in lxb_html_tree_insertion_mode_before_head_open()
78 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_before_head_open()
106 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_before_head_closed()
121 tree->status = lxb_html_tree_insertion_mode_before_head_head(tree, in lxb_html_tree_insertion_mode_before_head_anything_else()
123 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_before_head_anything_else()
124 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_before_head_anything_else()
[all …]
H A Din_table_body.c23 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_clear_stack_back_to_table_body()
24 current = lxb_html_tree_current_node(tree); in lxb_html_tree_clear_stack_back_to_table_body()
34 lxb_html_tree_clear_stack_back_to_table_body(tree); in lxb_html_tree_insertion_mode_in_table_body_tr()
40 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_in_table_body_tr()
43 tree->mode = lxb_html_tree_insertion_mode_in_row; in lxb_html_tree_insertion_mode_in_table_body_tr()
60 lxb_html_tree_clear_stack_back_to_table_body(tree); in lxb_html_tree_insertion_mode_in_table_body_thtd()
72 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_in_table_body_thtd()
75 tree->mode = lxb_html_tree_insertion_mode_in_row; in lxb_html_tree_insertion_mode_in_table_body_thtd()
97 lxb_html_tree_clear_stack_back_to_table_body(tree); in lxb_html_tree_insertion_mode_in_table_body_tbtfth_closed()
98 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_in_table_body_tbtfth_closed()
[all …]
H A Din_table_text.c25 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_table_text()
35 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_in_table_text()
39 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_table_text()
50 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_table_text()
70 if (!tree->pending_table.have_non_ws) { in lxb_html_tree_insertion_mode_in_table_text()
78 if (tree->pending_table.have_non_ws) { in lxb_html_tree_insertion_mode_in_table_text()
81 tree->foster_parenting = true; in lxb_html_tree_insertion_mode_in_table_text()
95 tree->foster_parenting = false; in lxb_html_tree_insertion_mode_in_table_text()
101 tree->status = lxb_html_tree_insert_character_for_data(tree, text, in lxb_html_tree_insertion_mode_in_table_text()
103 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_table_text()
[all …]
H A Din_cell.c20 node = lxb_html_tree_current_node(tree); in lxb_html_tree_close_cell()
25 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_close_cell()
29 lxb_html_tree_open_elements_pop_until_td_th(tree); in lxb_html_tree_close_cell()
30 lxb_html_tree_active_formatting_up_to_last_marker(tree); in lxb_html_tree_close_cell()
32 tree->mode = lxb_html_tree_insertion_mode_in_row; in lxb_html_tree_close_cell()
55 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_cell_tdth_closed()
58 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_cell_tdth_closed()
67 tree->mode = lxb_html_tree_insertion_mode_in_row; in lxb_html_tree_insertion_mode_in_cell_tdth_closed()
81 node = lxb_html_tree_element_in_scope_td_th(tree); in lxb_html_tree_insertion_mode_in_cell_ct()
88 lxb_html_tree_close_cell(tree, token); in lxb_html_tree_insertion_mode_in_cell_ct()
[all …]
H A Din_caption.c26 lxb_html_tree_generate_implied_end_tags(tree, LXB_TAG__UNDEF, in lxb_html_tree_insertion_mode_in_caption_caption_closed()
29 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_caption_caption_closed()
32 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_caption_caption_closed()
39 lxb_html_tree_active_formatting_up_to_last_marker(tree); in lxb_html_tree_insertion_mode_in_caption_caption_closed()
41 tree->mode = lxb_html_tree_insertion_mode_in_table; in lxb_html_tree_insertion_mode_in_caption_caption_closed()
68 node = lxb_html_tree_current_node(tree); in lxb_html_tree_insertion_mode_in_caption_ct_open_closed()
71 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_caption_ct_open_closed()
78 lxb_html_tree_active_formatting_up_to_last_marker(tree); in lxb_html_tree_insertion_mode_in_caption_ct_open_closed()
80 tree->mode = lxb_html_tree_insertion_mode_in_table; in lxb_html_tree_insertion_mode_in_caption_ct_open_closed()
102 return lxb_html_tree_insertion_mode_in_body(tree, token); in lxb_html_tree_insertion_mode_in_caption_anything_else()
[all …]
H A Dforeign_content.c26 if (tree->open_elements->length == 0) { in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed()
27 return tree->mode(tree, token); in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed()
53 return tree->mode(tree, token); in lxb_html_tree_insertion_mode_foreign_content_anything_else_closed()
70 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_foreign_content_script_closed()
92 tree->before_append_attr = NULL; in lxb_html_tree_insertion_mode_foreign_content_anything_else()
107 tree->before_append_attr = NULL; in lxb_html_tree_insertion_mode_foreign_content_anything_else()
144 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_foreign_content_text()
155 if (tree->frameset_ok) { in lxb_html_tree_insertion_mode_foreign_content_text()
194 tree->status = lxb_html_tree_insert_character_for_data(tree, &str, NULL); in lxb_html_tree_insertion_mode_foreign_content_text()
195 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_foreign_content_text()
[all …]
H A Din_head_noscript.c21 lxb_html_tree_insertion_mode_in_head_noscript(lxb_html_tree_t *tree, in lxb_html_tree_insertion_mode_in_head_noscript() argument
42 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_head_noscript_open()
60 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_head_noscript_open()
69 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_head_noscript_open()
70 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_in_head_noscript_open()
74 tree->status = lxb_html_tree_insert_character(tree, &ws_token, in lxb_html_tree_insertion_mode_in_head_noscript_open()
76 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_in_head_noscript_open()
77 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_in_head_noscript_open()
113 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_in_head_noscript_anything_else()
116 lxb_html_tree_open_elements_pop(tree); in lxb_html_tree_insertion_mode_in_head_noscript_anything_else()
[all …]
H A Dafter_frameset.c11 lxb_html_tree_insertion_mode_after_frameset(lxb_html_tree_t *tree, in lxb_html_tree_insertion_mode_after_frameset() argument
20 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_after_frameset()
27 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_after_frameset()
44 tree->status = lxb_html_tree_stop_parsing(tree); in lxb_html_tree_insertion_mode_after_frameset()
45 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_after_frameset()
46 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_after_frameset()
58 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_after_frameset()
59 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_after_frameset()
67 tree->status = lxb_html_tree_insert_character_for_data(tree, in lxb_html_tree_insertion_mode_after_frameset()
70 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_after_frameset()
[all …]
H A Dafter_body.c12 lxb_html_tree_insertion_mode_after_body(lxb_html_tree_t *tree, in lxb_html_tree_insertion_mode_after_body() argument
20 html_node = lxb_html_tree_open_elements_first(tree); in lxb_html_tree_insertion_mode_after_body()
24 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_after_body()
31 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_after_body()
38 if (tree->fragment != NULL) { in lxb_html_tree_insertion_mode_after_body()
39 lxb_html_tree_parse_error(tree, token, in lxb_html_tree_insertion_mode_after_body()
52 tree->status = lxb_html_tree_stop_parsing(tree); in lxb_html_tree_insertion_mode_after_body()
53 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_after_body()
54 return lxb_html_tree_process_abort(tree); in lxb_html_tree_insertion_mode_after_body()
63 if (tree->status != LXB_STATUS_OK) { in lxb_html_tree_insertion_mode_after_body()
[all …]
/PHP-8.2/ext/dom/lexbor/lexbor/html/
H A Dtree.h234 tree->document = document; in lxb_html_tree_begin()
249 tree->document->done(tree->document); in lxb_html_tree_end()
259 tree->status = lxb_html_tree_begin(tree, document); in lxb_html_tree_build()
261 return tree->status; in lxb_html_tree_build()
264 tree->status = lxb_html_tree_chunk(tree, html, size); in lxb_html_tree_build()
266 return tree->status; in lxb_html_tree_build()
294 tree->open_elements->list[ (tree->open_elements->length - 1) ]; in lxb_html_tree_current_node()
300 if(tree->fragment != NULL && tree->open_elements->length == 1) { in lxb_html_tree_adjusted_current_node()
363 return tree->scripting; in lxb_html_tree_scripting()
369 tree->scripting = scripting; in lxb_html_tree_scripting_set()
[all …]
H A Dtree.c136 return tree; in lxb_html_tree_ref()
142 if (tree == NULL || tree->ref_count == 0) { in lxb_html_tree_unref()
194 tree->tkz_ref = lxb_html_tokenizer_unref(tree->tkz_ref); in lxb_html_tree_destroy()
252 return tree->mode(tree, token); in lxb_html_tree_construction_dispatcher()
261 return tree->mode(tree, token); in lxb_html_tree_construction_dispatcher()
265 return tree->mode(tree, token); in lxb_html_tree_construction_dispatcher()
274 return tree->mode(tree, token); in lxb_html_tree_construction_dispatcher()
281 return tree->mode(tree, token); in lxb_html_tree_construction_dispatcher()
286 return tree->mode(tree, token); in lxb_html_tree_construction_dispatcher()
888 tree->original_mode = tree->mode; in lxb_html_tree_generic_rawtext_parsing()
[all …]
/PHP-8.2/ext/dom/lexbor/lexbor/html/tree/
H A Dopen_elements.c16 void **list = tree->open_elements->list; in lxb_html_tree_open_elements_remove_by_node()
17 size_t len = tree->open_elements->length; in lxb_html_tree_open_elements_remove_by_node()
27 tree->open_elements->length--; in lxb_html_tree_open_elements_remove_by_node()
40 void **list = tree->open_elements->list; in lxb_html_tree_open_elements_pop_until_tag_id()
44 tree->open_elements->length--; in lxb_html_tree_open_elements_pop_until_tag_id()
61 void **list = tree->open_elements->list; in lxb_html_tree_open_elements_pop_until_h123456()
65 tree->open_elements->length--; in lxb_html_tree_open_elements_pop_until_h123456()
95 tree->open_elements->length--; in lxb_html_tree_open_elements_pop_until_td_th()
122 tree->open_elements->length--; in lxb_html_tree_open_elements_pop_until_node()
138 tree->open_elements->length = idx; in lxb_html_tree_open_elements_pop_until()
[all …]
H A Dactive_formatting.h30 lxb_html_tree_active_formatting_find_by_node(lxb_html_tree_t *tree,
58 if (tree->active_formatting->length == 0) { in lxb_html_tree_active_formatting_current_node()
62 return (lxb_dom_node_t *) tree->active_formatting->list in lxb_html_tree_active_formatting_current_node()
63 [ (tree->active_formatting->length - 1) ]; in lxb_html_tree_active_formatting_current_node()
67 lxb_html_tree_active_formatting_first(lxb_html_tree_t *tree) in lxb_html_tree_active_formatting_first() argument
79 lxb_html_tree_active_formatting_push(lxb_html_tree_t *tree, in lxb_html_tree_active_formatting_push() argument
82 return lexbor_array_push(tree->active_formatting, node); in lxb_html_tree_active_formatting_push()
86 lxb_html_tree_active_formatting_pop(lxb_html_tree_t *tree) in lxb_html_tree_active_formatting_pop() argument
94 return lexbor_array_push(tree->active_formatting, in lxb_html_tree_active_formatting_push_marker()
99 lxb_html_tree_active_formatting_insert(lxb_html_tree_t *tree, in lxb_html_tree_active_formatting_insert() argument
[all …]
H A Dinsertion_mode.h19 lxb_html_tree_insertion_mode_initial(lxb_html_tree_t *tree,
23 lxb_html_tree_insertion_mode_before_html(lxb_html_tree_t *tree,
27 lxb_html_tree_insertion_mode_before_head(lxb_html_tree_t *tree,
31 lxb_html_tree_insertion_mode_in_head(lxb_html_tree_t *tree,
39 lxb_html_tree_insertion_mode_after_head(lxb_html_tree_t *tree,
43 lxb_html_tree_insertion_mode_in_body(lxb_html_tree_t *tree,
59 lxb_html_tree_insertion_mode_text(lxb_html_tree_t *tree,
63 lxb_html_tree_insertion_mode_in_table(lxb_html_tree_t *tree,
87 lxb_html_tree_insertion_mode_in_row(lxb_html_tree_t *tree,
91 lxb_html_tree_insertion_mode_in_cell(lxb_html_tree_t *tree,
[all …]

Completed in 94 milliseconds

12345