# HG changeset patch
# User Ben Schmidt
# Date 1428985621 -36000
#      Tue Apr 14 14:27:01 2015 +1000
# Node ID 0d0b590cd1ce67e56df75c42e62061faa1bee2e1
# Parent  ee69d892e0a1cfe05405fa980edfe877d332f010
Include 'prefix' in HTML element name since no namespaces in HTML.

diff --git a/SAX2.c b/SAX2.c
--- a/SAX2.c
+++ b/SAX2.c
@@ -1619,7 +1619,12 @@
     /*
      * Split the full name into a namespace prefix and the tag name
      */
-    name = xmlSplitQName(ctxt, fullname, &prefix);
+    if (!ctxt->html) {
+	name = xmlSplitQName(ctxt, fullname, &prefix);
+    } else {
+	name = xmlStrdup(fullname);
+	prefix = NULL;
+    }
 
 
     /*
