Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
libxml2
Commits
6de6f97d
Commit
6de6f97d
authored
Apr 20, 2004
by
Aleksey Sanin
Browse files
fixing C14N bug with processing namespaces from attributes
parent
7c4eb63b
Changes
1
Hide whitespace changes
Inline
Side-by-side
c14n.c
View file @
6de6f97d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment