@@ -965,7 +965,7 @@ static void dom_node_insert_before_legacy(zval *return_value, zval *ref, dom_obj
965965 xmlAttrPtr lastattr ;
966966
967967 if (child -> ns == NULL )
968- lastattr = xmlHasProp (refp -> parent , child -> name );
968+ lastattr = xmlHasNsProp (refp -> parent , child -> name , NULL );
969969 else
970970 lastattr = xmlHasNsProp (refp -> parent , child -> name , child -> ns -> href );
971971 if (lastattr != NULL && lastattr -> type != XML_ATTRIBUTE_DECL ) {
@@ -1012,7 +1012,7 @@ static void dom_node_insert_before_legacy(zval *return_value, zval *ref, dom_obj
10121012 xmlAttrPtr lastattr ;
10131013
10141014 if (child -> ns == NULL )
1015- lastattr = xmlHasProp (parentp , child -> name );
1015+ lastattr = xmlHasNsProp (parentp , child -> name , NULL );
10161016 else
10171017 lastattr = xmlHasNsProp (parentp , child -> name , child -> ns -> href );
10181018 if (lastattr != NULL && lastattr -> type != XML_ATTRIBUTE_DECL ) {
@@ -1374,7 +1374,7 @@ static void dom_node_append_child_legacy(zval *return_value, dom_object *intern,
13741374 xmlAttrPtr lastattr ;
13751375
13761376 if (child -> ns == NULL )
1377- lastattr = xmlHasProp (nodep , child -> name );
1377+ lastattr = xmlHasNsProp (nodep , child -> name , NULL );
13781378 else
13791379 lastattr = xmlHasNsProp (nodep , child -> name , child -> ns -> href );
13801380 if (lastattr != NULL && lastattr -> type != XML_ATTRIBUTE_DECL ) {
0 commit comments