1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-25 23:21:26 +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:
William M. Brack 2003-09-14 18:07:39 +00:00
parent 899abafb26
commit 4e52f2f430
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sun Sep 14 11:03:27 PDT 2003 William Brack <wbrack@mmm.com.hk>
* valid.c: fixed bug 121759 - early declaration of
attribute-list in external DTD
Sat Sep 13 14:42:11 CEST 2003 Daniel Veillard <daniel@veillard.com>
* parser.c include/libxml/xmlerror.h: starting cleaning up

View File

@ -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