Permalink
Browse files

fix bug #324432 with <xml:foo/> added to the regression tests Daniel

* SAX2.c: fix bug #324432 with <xml:foo/>
* test/ns7 resul//ns7*: added to the regression tests
Daniel
  • Loading branch information...
1 parent affb868 commit 6977c6c4376df5818028b4dd58662e8785c265b3 Daniel Veillard committed Jan 4, 2006
Showing with 26 additions and 0 deletions.
  1. +5 −0 ChangeLog
  2. +4 −0 SAX2.c
  3. +2 −0 result/noent/ns7
  4. +2 −0 result/ns7
  5. +1 −0 result/ns7.rde
  6. +1 −0 result/ns7.rdr
  7. +5 −0 result/ns7.sax
  8. +5 −0 result/ns7.sax2
  9. +1 −0 test/ns7
View
@@ -1,3 +1,8 @@
+Wed Jan 4 15:00:51 CET 2006 Daniel Veillard <daniel@veillard.com>
+
+ * SAX2.c: fix bug #324432 with <xml:foo/>
+ * test/ns7 resul//ns7*: added to the regression tests
+
Wed Jan 4 10:53:56 CET 2006 Daniel Veillard <daniel@veillard.com>
* include/wsockcompat.h: applied patch from Mark Junker, fixing a
View
4 SAX2.c
@@ -2233,9 +2233,13 @@ xmlSAX2StartElementNs(void *ctx,
*/
if ((URI != NULL) && (ret->ns == NULL)) {
ret->ns = xmlSearchNs(ctxt->myDoc, parent, prefix);
+ if ((ret->ns == NULL) && (xmlStrEqual(prefix, BAD_CAST "xml"))) {
+ ret->ns = xmlSearchNs(ctxt->myDoc, ret, prefix);
+ }
if (ret->ns == NULL) {
ns = xmlNewNs(ret, NULL, prefix);
if (ns == NULL) {
+
xmlSAX2ErrMemory(ctxt, "xmlSAX2StartElementNs");
return;
}
View
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<xml:test/>
View
@@ -0,0 +1,2 @@
+<?xml version="1.0"?>
+<xml:test/>
View
@@ -0,0 +1 @@
+0 1 xml:test 1 0
View
@@ -0,0 +1 @@
+0 1 xml:test 1 0
View
@@ -0,0 +1,5 @@
+SAX.setDocumentLocator()
+SAX.startDocument()
+SAX.startElement(xml:test)
+SAX.endElement(xml:test)
+SAX.endDocument()
View
@@ -0,0 +1,5 @@
+SAX.setDocumentLocator()
+SAX.startDocument()
+SAX.startElementNs(test, xml, 'http://www.w3.org/XML/1998/namespace', 0, 0, 0)
+SAX.endElementNs(test, xml, 'http://www.w3.org/XML/1998/namespace')
+SAX.endDocument()
View
@@ -0,0 +1 @@
+<xml:test/>

0 comments on commit 6977c6c

Please sign in to comment.