Projects
openEuler:22.03:LTS:LoongArch
libxml2
_service:tar_scm_kernel_repo:backport-Don-t-res...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm_kernel_repo:backport-Don-t-reset-nsDef-when-changing-node-content.patch of Package libxml2
From a17a1f564eaac42d6db561c639b5d2461884e829 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer <wellnhofer@aevum.de> Date: Wed, 18 May 2022 02:17:31 +0200 Subject: [PATCH] Don't reset nsDef when changing node content nsDef is only used for element nodes. --- tree.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tree.c b/tree.c index 923432f0..e2ab961b 100644 --- a/tree.c +++ b/tree.c @@ -5760,7 +5760,6 @@ xmlNodeSetContent(xmlNodePtr cur, const xmlChar *content) { } else cur->content = NULL; cur->properties = NULL; - cur->nsDef = NULL; break; case XML_DOCUMENT_NODE: case XML_HTML_DOCUMENT_NODE: @@ -5835,7 +5834,6 @@ xmlNodeSetContentLen(xmlNodePtr cur, const xmlChar *content, int len) { } else cur->content = NULL; cur->properties = NULL; - cur->nsDef = NULL; break; case XML_DOCUMENT_NODE: case XML_DTD_NODE: @@ -5911,7 +5909,6 @@ xmlNodeAddContentLen(xmlNodePtr cur, const xmlChar *content, int len) { xmlDictOwns(cur->doc->dict, cur->content))) { cur->content = xmlStrncatNew(cur->content, content, len); cur->properties = NULL; - cur->nsDef = NULL; } else { cur->content = xmlStrncat(cur->content, content, len); } -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.