1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

- HTMLparser.c: fixed htmlNewDoc SYSTEM and PUBLIC ID inversion

when both parameters are NULL.
Daniel
This commit is contained in:
Daniel Veillard
2001-05-04 17:52:34 +00:00
parent 377219233f
commit 6426935a9a
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Fri May 4 19:51:15 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* HTMLparser.c: fixed htmlNewDoc SYSTEM and PUBLIC ID inversion
when both parameters are NULL.
Fri May 4 17:19:39 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr> Fri May 4 17:19:39 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* valid.c: applied small patch from Gary Pennington, reindented * valid.c: applied small patch from Gary Pennington, reindented

View File

@ -1813,8 +1813,8 @@ htmlDocPtr
htmlNewDoc(const xmlChar *URI, const xmlChar *ExternalID) { htmlNewDoc(const xmlChar *URI, const xmlChar *ExternalID) {
if ((URI == NULL) && (ExternalID == NULL)) if ((URI == NULL) && (ExternalID == NULL))
return(htmlNewDocNoDtD( return(htmlNewDocNoDtD(
BAD_CAST "-//W3C//DTD HTML 4.0 Transitional//EN", BAD_CAST "http://www.w3.org/TR/REC-html40/loose.dtd",
BAD_CAST "http://www.w3.org/TR/REC-html40/loose.dtd")); BAD_CAST "-//W3C//DTD HTML 4.0 Transitional//EN"));
return(htmlNewDocNoDtD(URI, ExternalID)); return(htmlNewDocNoDtD(URI, ExternalID));
} }