- win32config.h.in: updated
- xmlversion.h.in: crap forgot to update this, this mean 2.1.0
  lacks iconv support :-( need to release 2.1.1
- configure.in: release 2.1.1
- HTMLparser: fixed bug #14784
- xpath.c HTMLparser.c encoding.c parser.c: fix warning raised
  by Windows compiler
- HTMLparser.c SAX.c HTMLtree.h tree.h: create HTML document in
  the SAX startDocument() callback.
- TODO: updated
- rebuild doc
Daniel
diff --git a/SAX.c b/SAX.c
index ee3af39..68e2d31 100644
--- a/SAX.c
+++ b/SAX.c
@@ -574,13 +574,18 @@
 #ifdef DEBUG_SAX
     fprintf(stderr, "SAX.startDocument()\n");
 #endif
-    doc = ctxt->myDoc = xmlNewDoc(ctxt->version);
-    if (doc != NULL) {
-	if (ctxt->encoding != NULL)
-	    doc->encoding = xmlStrdup(ctxt->encoding);
-	else
-	    doc->encoding = NULL;
-	doc->standalone = ctxt->standalone;
+    if (ctxt->html) {
+	if (ctxt->myDoc == NULL)
+	    ctxt->myDoc = htmlNewDoc(NULL, NULL);
+    } else {
+	doc = ctxt->myDoc = xmlNewDoc(ctxt->version);
+	if (doc != NULL) {
+	    if (ctxt->encoding != NULL)
+		doc->encoding = xmlStrdup(ctxt->encoding);
+	    else
+		doc->encoding = NULL;
+	    doc->standalone = ctxt->standalone;
+	}
     }
 }