diff options
| author | Daniel Veillard <veillard@src.gnome.org> | 2001-10-22 12:31:11 +0000 |
|---|---|---|
| committer | Daniel Veillard <veillard@src.gnome.org> | 2001-10-22 12:31:11 +0000 |
| commit | b6b0fd8962e95bdb27e9e65bc785ce8cf1a3622c (patch) | |
| tree | 5b83461be4a374b70743500123e6406cf4c47a16 /HTMLparser.c | |
| parent | 89cad536e3e38002bfc931acfa2e0645d4b08a51 (diff) | |
| download | android_external_libxml2-b6b0fd8962e95bdb27e9e65bc785ce8cf1a3622c.tar.gz android_external_libxml2-b6b0fd8962e95bdb27e9e65bc785ce8cf1a3622c.tar.bz2 android_external_libxml2-b6b0fd8962e95bdb27e9e65bc785ce8cf1a3622c.zip | |
Fixed a bug when creating a new HTML document, doc->children
was set to NULL with a DTD child
Daniel
Diffstat (limited to 'HTMLparser.c')
| -rw-r--r-- | HTMLparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/HTMLparser.c b/HTMLparser.c index 6b69b206..428248ed 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -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); } |
