Lines Matching refs:context_node

182 static xmlNodePtr dom_html_fragment_parsing_algorithm(dom_object *obj, xmlNodePtr context_node, con…  in dom_html_fragment_parsing_algorithm()  argument
191 …ta_by_name(document->dom_document.tags, (lxb_char_t *) context_node->name, xmlStrlen(context_node-… in dom_html_fragment_parsing_algorithm()
196 if (context_node->ns == NULL || context_node->ns->href == NULL) { in dom_html_fragment_parsing_algorithm()
200 ns_uri = context_node->ns->href; in dom_html_fragment_parsing_algorithm()
210 …tus status = lexbor_libxml2_bridge_convert_fragment(node->last_child, context_node->doc, &fragment… in dom_html_fragment_parsing_algorithm()
223 static void dom_xml_parser_tag_name(const xmlNode *context_node, xmlParserCtxtPtr parser) in dom_xml_parser_tag_name() argument
225 if (context_node->ns != NULL && context_node->ns->prefix != NULL) { in dom_xml_parser_tag_name()
226 …xmlParseChunk(parser, (const char *) context_node->ns->prefix, xmlStrlen(context_node->ns->prefix)… in dom_xml_parser_tag_name()
230 xmlParseChunk(parser, (const char *) context_node->name, xmlStrlen(context_node->name), 0); in dom_xml_parser_tag_name()
233 …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
236 dom_xml_parser_tag_name(context_node, parser); in dom_xml_fragment_parsing_algorithm_parse()
240 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()
252 const char *default_ns = dom_locate_a_namespace(context_node, NULL); in dom_xml_fragment_parsing_algorithm_parse()
264 dom_xml_parser_tag_name(context_node, parser); in dom_xml_fragment_parsing_algorithm_parse()
269 static xmlNodePtr dom_xml_fragment_parsing_algorithm(dom_object *obj, const xmlNode *context_node, … in dom_xml_fragment_parsing_algorithm() argument
281 if (context_node->doc->dict == NULL) { in dom_xml_fragment_parsing_algorithm()
282 context_node->doc->dict = xmlDictCreate(); in dom_xml_fragment_parsing_algorithm()
283 xmlDictSetLimit(context_node->doc->dict, XML_MAX_DICTIONARY_LIMIT); in dom_xml_fragment_parsing_algorithm()
285 parser->dict = context_node->doc->dict; in dom_xml_fragment_parsing_algorithm()
294 dom_xml_fragment_parsing_algorithm_parse(ns_mapper, context_node, input, parser); in dom_xml_fragment_parsing_algorithm()
320 xmlNodePtr fragment = xmlNewDocFragment(context_node->doc); in dom_xml_fragment_parsing_algorithm()
325 xmlSetTreeDoc(document_element, context_node->doc); in dom_xml_fragment_parsing_algorithm()
341 DOM_PROP_NODE(xmlNodePtr, context_node, obj); in dom_element_inner_html_write()
344 if (context_node->doc->type == XML_DOCUMENT_NODE) { in dom_element_inner_html_write()
345 fragment = dom_xml_fragment_parsing_algorithm(obj, context_node, Z_STR_P(newval)); in dom_element_inner_html_write()
347 …fragment = dom_html_fragment_parsing_algorithm(obj, context_node, Z_STR_P(newval), obj->document->… in dom_element_inner_html_write()
354 …if (php_dom_ns_is_fast(context_node, php_dom_ns_is_html_magic_token) && xmlStrEqual(context_node->… in dom_element_inner_html_write()
355 context_node = php_dom_ensure_templated_content(php_dom_get_private_data(obj), context_node); in dom_element_inner_html_write()
356 if (context_node == NULL) { in dom_element_inner_html_write()
365 dom_remove_all_children(context_node); in dom_element_inner_html_write()
366 return php_dom_pre_insert(obj->document, fragment, context_node, NULL) ? SUCCESS : FAILURE; in dom_element_inner_html_write()