mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
fixed bug 121759 - early declaration of attribute-list in external DTD
* valid.c: fixed bug 121759 - early declaration of attribute-list in external DTD
This commit is contained in:
6
valid.c
6
valid.c
@ -1214,6 +1214,11 @@ xmlAddElementDecl(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *name,
|
||||
xmlFree(uqname);
|
||||
return(NULL);
|
||||
}
|
||||
/*
|
||||
* For new element, may have attributes from earlier
|
||||
* definition in internal subset
|
||||
*/
|
||||
ret->attributes = oldAttributes;
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1221,7 +1226,6 @@ xmlAddElementDecl(xmlValidCtxtPtr ctxt, xmlDtdPtr dtd, const xmlChar *name,
|
||||
*/
|
||||
ret->etype = type;
|
||||
ret->content = xmlCopyElementContent(content);
|
||||
ret->attributes = oldAttributes;
|
||||
|
||||
/*
|
||||
* Link it to the DTD
|
||||
|
Reference in New Issue
Block a user