Commit 6de6f97d authored by Aleksey Sanin's avatar Aleksey Sanin
Browse files

fixing C14N bug with processing namespaces from attributes

parent 7c4eb63b
......@@ -176,7 +176,13 @@ xmlC14NIsNodeInNodeset(xmlNodeSetPtr nodes, xmlNodePtr node, xmlNodePtr parent)
xmlNs ns;
memcpy(&ns, node, sizeof(ns));
ns.next = (xmlNsPtr)parent; /* this is a libxml hack! check xpath.c for details */
/* this is a libxml hack! check xpath.c for details */
if((parent != NULL) && (parent->type == XML_ATTRIBUTE_NODE)) {
ns.next = (xmlNsPtr)parent->parent;
} else {
ns.next = (xmlNsPtr)parent;
}
/*
* If the input is an XPath node-set, then the node-set must explicitly
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment