Commit b6b0fd89 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

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

was set to NULL with a DTD child
Daniel
parent 89cad536
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
......
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment