Lines Matching refs:parentp

846 static bool dom_node_check_legacy_insertion_validity(xmlNodePtr parentp, xmlNodePtr child, bool str…  in dom_node_check_legacy_insertion_validity()  argument
848 if (dom_node_is_read_only(parentp) == SUCCESS || in dom_node_check_legacy_insertion_validity()
854 if (dom_hierarchy(parentp, child) == FAILURE) { in dom_node_check_legacy_insertion_validity()
859 if (child->doc != parentp->doc && child->doc != NULL) { in dom_node_check_legacy_insertion_validity()
871 …if (parentp->type == XML_ATTRIBUTE_NODE && child->type != XML_TEXT_NODE && child->type != XML_ENTI… in dom_node_check_legacy_insertion_validity()
876 if (child->type == XML_ATTRIBUTE_NODE && parentp->type != XML_ELEMENT_NODE) { in dom_node_check_legacy_insertion_validity()
896 xmlNodePtr child, new_child, parentp, refp = NULL; in PHP_METHOD() local
905 DOM_GET_OBJ(parentp, id, xmlNodePtr, intern); in PHP_METHOD()
907 if (dom_node_children_valid(parentp) == FAILURE) { in PHP_METHOD()
917 if (!dom_node_check_legacy_insertion_validity(parentp, child, stricterror)) { in PHP_METHOD()
924 if (refp->parent != parentp) { in PHP_METHOD()
930 if (child->doc == NULL && parentp->doc != NULL) { in PHP_METHOD()
943 xmlSetTreeDoc(child, parentp->doc); in PHP_METHOD()
981 new_child = _php_dom_insert_fragment(parentp, refp->prev, refp, child, intern, childobj); in PHP_METHOD()
982 dom_reconcile_ns_list(parentp->doc, new_child, last); in PHP_METHOD()
988 dom_reconcile_ns(parentp->doc, new_child); in PHP_METHOD()
994 …if (child->type == XML_TEXT_NODE && parentp->last != NULL && parentp->last->type == XML_TEXT_NODE)… in PHP_METHOD()
995 child->parent = parentp; in PHP_METHOD()
997 xmlSetTreeDoc(child, parentp->doc); in PHP_METHOD()
1000 if (parentp->children == NULL) { in PHP_METHOD()
1001 parentp->children = child; in PHP_METHOD()
1002 parentp->last = child; in PHP_METHOD()
1004 child = parentp->last; in PHP_METHOD()
1007 parentp->last = new_child; in PHP_METHOD()
1013 lastattr = xmlHasProp(parentp, child->name); in PHP_METHOD()
1015 lastattr = xmlHasNsProp(parentp, child->name, child->ns->href); in PHP_METHOD()
1025 new_child = xmlAddChild(parentp, child); in PHP_METHOD()
1031 new_child = _php_dom_insert_fragment(parentp, parentp->last, NULL, child, intern, childobj); in PHP_METHOD()
1032 dom_reconcile_ns_list(parentp->doc, new_child, last); in PHP_METHOD()
1034 new_child = xmlAddChild(parentp, child); in PHP_METHOD()
1038 dom_reconcile_ns(parentp->doc, new_child); in PHP_METHOD()