Skip to content
Snippets Groups Projects
Commit 0fa04cb83454 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

fixing bug #319964, parsing of HTML attribute really should not have

* SAX2.c: fixing bug #319964, parsing of HTML attribute really
  should not have namespace processing.
Daniel

svn path=/trunk/; revision=3637
parent 9dbf14663f2f
No related branches found
No related tags found
No related merge requests found
Tue Jun 12 17:14:08 CEST 2007 Daniel Veillard <daniel@veillard.com>
* SAX2.c: fixing bug #319964, parsing of HTML attribute really
should not have namespace processing.
Tue Jun 12 16:42:14 CEST 2007 Daniel Veillard <daniel@veillard.com> Tue Jun 12 16:42:14 CEST 2007 Daniel Veillard <daniel@veillard.com>
   
* parser.c: fixed the push mode when a big comment occurs before * parser.c: fixed the push mode when a big comment occurs before
......
...@@ -1059,6 +1059,11 @@ ...@@ -1059,6 +1059,11 @@
xmlChar *nval; xmlChar *nval;
xmlNsPtr namespace; xmlNsPtr namespace;
if (ctxt->html) {
name = xmlStrdup(fullname);
ns = NULL;
namespace = NULL;
} else {
/* /*
* Split the full name into a namespace prefix and the tag name * Split the full name into a namespace prefix and the tag name
*/ */
...@@ -1079,6 +1084,7 @@ ...@@ -1079,6 +1084,7 @@
xmlFree(name); xmlFree(name);
name = xmlStrdup(fullname); name = xmlStrdup(fullname);
} }
}
if (name == NULL) { if (name == NULL) {
xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement"); xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElement");
if (ns != NULL) if (ns != NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment