From 6426935a9a40b617f1c98219c990bcd6ff2666a1 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 4 May 2001 17:52:34 +0000 Subject: [PATCH] - HTMLparser.c: fixed htmlNewDoc SYSTEM and PUBLIC ID inversion when both parameters are NULL. Daniel --- ChangeLog | 5 +++++ HTMLparser.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 48abcbd8..71b71b53 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri May 4 19:51:15 CEST 2001 Daniel Veillard + + * HTMLparser.c: fixed htmlNewDoc SYSTEM and PUBLIC ID inversion + when both parameters are NULL. + Fri May 4 17:19:39 CEST 2001 Daniel Veillard * valid.c: applied small patch from Gary Pennington, reindented diff --git a/HTMLparser.c b/HTMLparser.c index 13db1f0c..870201dd 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -1813,8 +1813,8 @@ htmlDocPtr htmlNewDoc(const xmlChar *URI, const xmlChar *ExternalID) { if ((URI == NULL) && (ExternalID == NULL)) 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)); }