- HTMLparser.c: fixed htmlNewDoc SYSTEM and PUBLIC ID inversion
  when both parameters are NULL.
Daniel
diff --git a/HTMLparser.c b/HTMLparser.c
index 13db1f0..870201d 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -1813,8 +1813,8 @@
 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));
 }