mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-13 09:01:53 +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:
@ -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>
|
Mon Oct 22 11:32:36 CEST 2001 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* test/threads/*: added entities testing to the Thread test
|
* 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->type = XML_HTML_DOCUMENT_NODE;
|
||||||
cur->version = NULL;
|
cur->version = NULL;
|
||||||
cur->intSubset = NULL;
|
cur->intSubset = NULL;
|
||||||
if ((ExternalID != NULL) ||
|
|
||||||
(URI != NULL))
|
|
||||||
xmlCreateIntSubset(cur, BAD_CAST "HTML", ExternalID, URI);
|
|
||||||
cur->doc = cur;
|
cur->doc = cur;
|
||||||
cur->name = NULL;
|
cur->name = NULL;
|
||||||
cur->children = NULL;
|
cur->children = NULL;
|
||||||
@ -1824,6 +1821,9 @@ htmlNewDocNoDtD(const xmlChar *URI, const xmlChar *ExternalID) {
|
|||||||
cur->ids = NULL;
|
cur->ids = NULL;
|
||||||
cur->refs = NULL;
|
cur->refs = NULL;
|
||||||
cur->_private = NULL;
|
cur->_private = NULL;
|
||||||
|
if ((ExternalID != NULL) ||
|
||||||
|
(URI != NULL))
|
||||||
|
xmlCreateIntSubset(cur, BAD_CAST "html", ExternalID, URI);
|
||||||
return(cur);
|
return(cur);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user