mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-10 08:58:16 +03:00
Anthony Jones pointed out a problem in xmlStringGetNodeList() and provided
* tree.c: Anthony Jones pointed out a problem in xmlStringGetNodeList() and provided a fix for it Daniel
This commit is contained in:
parent
aa39a0fb6b
commit
6f42c13647
@ -1,3 +1,8 @@
|
||||
Mon Jan 7 00:03:58 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* tree.c: Anthony Jones pointed out a problem in
|
||||
xmlStringGetNodeList() and provided a fix for it
|
||||
|
||||
Sun Jan 6 13:45:49 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* parser.c: patch from Jack J Franklin to remove a bug in
|
||||
|
3
tree.c
3
tree.c
@ -750,6 +750,9 @@ xmlStringGetNodeList(xmlDocPtr doc, const xmlChar *value) {
|
||||
if (last == NULL) {
|
||||
node = xmlNewDocText(doc, ent->content);
|
||||
last = ret = node;
|
||||
} else if (last->type != XML_TEXT_NODE) {
|
||||
node = xmlNewDocText(doc, ent->content);
|
||||
last = xmlAddNextSibling(last, node);
|
||||
} else
|
||||
xmlNodeAddContent(last, ent->content);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user