mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-28 00:21:53 +03:00
one more IsEmptyElement crazyness, that time in external parsed entities
* parser.c: one more IsEmptyElement crazyness, that time in external parsed entities if substitution is asked. * python/tests/reader3.py: added a specific test. Daniel
This commit is contained in:
9
parser.c
9
parser.c
@ -5599,10 +5599,13 @@ xmlParseReference(xmlParserCtxtPtr ctxt) {
|
||||
cur = ent->children;
|
||||
while (cur != NULL) {
|
||||
new = xmlCopyNode(cur, 1);
|
||||
if (firstChild == NULL){
|
||||
firstChild = new;
|
||||
if (new != NULL) {
|
||||
new->_private = cur->_private;
|
||||
if (firstChild == NULL){
|
||||
firstChild = new;
|
||||
}
|
||||
xmlAddChild(ctxt->node, new);
|
||||
}
|
||||
xmlAddChild(ctxt->node, new);
|
||||
if (cur == ent->last)
|
||||
break;
|
||||
cur = cur->next;
|
||||
|
Reference in New Issue
Block a user