Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
libxml2
Commits
b6b0fd89
Commit
b6b0fd89
authored
Oct 22, 2001
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
b6b0fd89
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
...
...
HTMLparser.c
View file @
b6b0fd89
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment