Lines Matching refs:context_node
189 static xmlNodePtr dom_html_fragment_parsing_algorithm(dom_object *obj, xmlNodePtr context_node, con… in dom_html_fragment_parsing_algorithm() argument
198 …ta_by_name(document->dom_document.tags, (lxb_char_t *) context_node->name, xmlStrlen(context_node-… in dom_html_fragment_parsing_algorithm()
203 if (context_node->ns == NULL || context_node->ns->href == NULL) { in dom_html_fragment_parsing_algorithm()
207 ns_uri = context_node->ns->href; in dom_html_fragment_parsing_algorithm()
217 …tus status = lexbor_libxml2_bridge_convert_fragment(node->last_child, context_node->doc, &fragment… in dom_html_fragment_parsing_algorithm()
230 static void dom_xml_parser_tag_name(const xmlNode *context_node, xmlParserCtxtPtr parser) in dom_xml_parser_tag_name() argument
232 if (context_node->ns != NULL && context_node->ns->prefix != NULL) { in dom_xml_parser_tag_name()
233 …xmlParseChunk(parser, (const char *) context_node->ns->prefix, xmlStrlen(context_node->ns->prefix)… in dom_xml_parser_tag_name()
237 xmlParseChunk(parser, (const char *) context_node->name, xmlStrlen(context_node->name), 0); in dom_xml_parser_tag_name()
240 …g_algorithm_parse(php_dom_libxml_ns_mapper *ns_mapper, const xmlNode *context_node, const zend_str… in dom_xml_fragment_parsing_algorithm_parse() argument
243 dom_xml_parser_tag_name(context_node, parser); in dom_xml_fragment_parsing_algorithm_parse()
247 php_dom_in_scope_ns in_scope_ns = php_dom_get_in_scope_ns(ns_mapper, context_node, true); in dom_xml_fragment_parsing_algorithm_parse()
259 const char *default_ns = dom_locate_a_namespace(context_node, NULL); in dom_xml_fragment_parsing_algorithm_parse()
271 dom_xml_parser_tag_name(context_node, parser); in dom_xml_fragment_parsing_algorithm_parse()
276 static xmlNodePtr dom_xml_fragment_parsing_algorithm(dom_object *obj, const xmlNode *context_node, … in dom_xml_fragment_parsing_algorithm() argument
288 if (context_node->doc->dict == NULL) { in dom_xml_fragment_parsing_algorithm()
289 context_node->doc->dict = xmlDictCreate(); in dom_xml_fragment_parsing_algorithm()
290 xmlDictSetLimit(context_node->doc->dict, XML_MAX_DICTIONARY_LIMIT); in dom_xml_fragment_parsing_algorithm()
292 parser->dict = context_node->doc->dict; in dom_xml_fragment_parsing_algorithm()
301 dom_xml_fragment_parsing_algorithm_parse(ns_mapper, context_node, input, parser); in dom_xml_fragment_parsing_algorithm()
327 xmlNodePtr fragment = xmlNewDocFragment(context_node->doc); in dom_xml_fragment_parsing_algorithm()
332 xmlSetTreeDoc(document_element, context_node->doc); in dom_xml_fragment_parsing_algorithm()
345 xmlNodePtr dom_parse_fragment(dom_object *obj, xmlNodePtr context_node, const zend_string *input) in dom_parse_fragment() argument
347 if (context_node->doc->type == XML_DOCUMENT_NODE) { in dom_parse_fragment()
348 return dom_xml_fragment_parsing_algorithm(obj, context_node, input); in dom_parse_fragment()
350 return dom_html_fragment_parsing_algorithm(obj, context_node, input, obj->document->quirks_mode); in dom_parse_fragment()
360 DOM_PROP_NODE(xmlNodePtr, context_node, obj); in dom_element_inner_html_write()
363 xmlNodePtr fragment = dom_parse_fragment(obj, context_node, Z_STR_P(newval)); in dom_element_inner_html_write()
369 …if (php_dom_ns_is_fast(context_node, php_dom_ns_is_html_magic_token) && xmlStrEqual(context_node->… in dom_element_inner_html_write()
370 context_node = php_dom_ensure_templated_content(php_dom_get_private_data(obj), context_node); in dom_element_inner_html_write()
371 if (context_node == NULL) { in dom_element_inner_html_write()
381 dom_remove_all_children(context_node); in dom_element_inner_html_write()
382 return php_dom_pre_insert(obj->document, fragment, context_node, NULL) ? SUCCESS : FAILURE; in dom_element_inner_html_write()