1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-09 04:58:16 +03:00

Fixed a bug when creating a new HTML document, doc->children

was set to NULL with a DTD child
Daniel
This commit is contained in:
Daniel Veillard 2001-10-22 12:31:11 +00:00
parent 89cad536e3
commit b6b0fd8962
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Mon Oct 22 14:20:17 CEST 2001 Daniel Veillard <daniel@veillard.com>
* HTMLparser.c: fixed a bug in htmlNewDoc()
Mon Oct 22 11:32:36 CEST 2001 Daniel Veillard <daniel@veillard.com>
* test/threads/*: added entities testing to the Thread test

View File

@ -1810,9 +1810,6 @@ htmlNewDocNoDtD(const xmlChar *URI, const xmlChar *ExternalID) {
cur->type = XML_HTML_DOCUMENT_NODE;
cur->version = NULL;
cur->intSubset = NULL;
if ((ExternalID != NULL) ||
(URI != NULL))
xmlCreateIntSubset(cur, BAD_CAST "HTML", ExternalID, URI);
cur->doc = cur;
cur->name = NULL;
cur->children = NULL;
@ -1824,6 +1821,9 @@ htmlNewDocNoDtD(const xmlChar *URI, const xmlChar *ExternalID) {
cur->ids = NULL;
cur->refs = NULL;
cur->_private = NULL;
if ((ExternalID != NULL) ||
(URI != NULL))
xmlCreateIntSubset(cur, BAD_CAST "html", ExternalID, URI);
return(cur);
}