aboutsummaryrefslogtreecommitdiffstats
path: root/debugXML.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2008-03-25 16:52:41 +0000
committerDaniel Veillard <veillard@src.gnome.org>2008-03-25 16:52:41 +0000
commit97c9ce2e991de1df49b326c7315b4e61fe6cfc2c (patch)
treea70f0ad8da8eb67a3f0ecbdc595dfbbe43a87dcd /debugXML.c
parente54c3173b85d2d7eb90fb3b95d96dc761018c15b (diff)
downloadandroid_external_libxml2-97c9ce2e991de1df49b326c7315b4e61fe6cfc2c.tar.gz
android_external_libxml2-97c9ce2e991de1df49b326c7315b4e61fe6cfc2c.tar.bz2
android_external_libxml2-97c9ce2e991de1df49b326c7315b4e61fe6cfc2c.zip
fix various attribute normalisation problems reported by Ashwin this
* parser.c: fix various attribute normalisation problems reported by Ashwin * result/c14n/without-comments/example-4 result/c14n/with-comments/example-4: this impacted the result of two c14n tests :-\ * test/att9 test/att10 test/att11 result//att9* result//att10* result//att11*: added 3 specific regression tests coming from the XML spec revision and from Ashwin Daniel svn path=/trunk/; revision=3715
Diffstat (limited to 'debugXML.c')
-rw-r--r--debugXML.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/debugXML.c b/debugXML.c
index f66f5964..de6fd6c7 100644
--- a/debugXML.c
+++ b/debugXML.c
@@ -320,7 +320,8 @@ xmlCtxtGenericNodeCheck(xmlDebugCtxtPtr ctxt, xmlNodePtr node) {
}
if (node->next == NULL) {
if ((node->parent != NULL) && (node->type != XML_ATTRIBUTE_NODE) &&
- (node->parent->last != node))
+ (node->parent->last != node) &&
+ (node->parent->type == XML_ELEMENT_NODE))
xmlDebugErr(ctxt, XML_CHECK_NO_NEXT,
"Node has no next and not last of parent list\n");
} else {