@@ -970,7 +970,7 @@ static void dom_node_insert_before_legacy(zval *return_value, zval *ref, dom_obj
970970 xmlAttrPtr lastattr ;
971971
972972 if (child -> ns == NULL )
973- lastattr = xmlHasProp (refp -> parent , child -> name );
973+ lastattr = xmlHasNsProp (refp -> parent , child -> name , NULL );
974974 else
975975 lastattr = xmlHasNsProp (refp -> parent , child -> name , child -> ns -> href );
976976 if (lastattr != NULL && lastattr -> type != XML_ATTRIBUTE_DECL ) {
@@ -1017,7 +1017,7 @@ static void dom_node_insert_before_legacy(zval *return_value, zval *ref, dom_obj
10171017 xmlAttrPtr lastattr ;
10181018
10191019 if (child -> ns == NULL )
1020- lastattr = xmlHasProp (parentp , child -> name );
1020+ lastattr = xmlHasNsProp (parentp , child -> name , NULL );
10211021 else
10221022 lastattr = xmlHasNsProp (parentp , child -> name , child -> ns -> href );
10231023 if (lastattr != NULL && lastattr -> type != XML_ATTRIBUTE_DECL ) {
@@ -1379,7 +1379,7 @@ static void dom_node_append_child_legacy(zval *return_value, dom_object *intern,
13791379 xmlAttrPtr lastattr ;
13801380
13811381 if (child -> ns == NULL )
1382- lastattr = xmlHasProp (nodep , child -> name );
1382+ lastattr = xmlHasNsProp (nodep , child -> name , NULL );
13831383 else
13841384 lastattr = xmlHasNsProp (nodep , child -> name , child -> ns -> href );
13851385 if (lastattr != NULL && lastattr -> type != XML_ATTRIBUTE_DECL ) {
0 commit comments