Re: [xml] addSibling missing check for element equality
- From: Daniel Veillard <veillard redhat com>
- To: Kris Breuker <kris b-lex nl>
- Cc: xml gnome org
- Subject: Re: [xml] addSibling missing check for element equality
- Date: Mon, 23 Mar 2009 20:32:54 +0100
On Wed, Mar 11, 2009 at 12:48:54PM +0100, Kris Breuker wrote:
Hello,
The functions xmlAddNextSibling and xmlAddPrevSibling have a check which
checks if the element to be added is the same as the reference element.
xmlAddSibling however does not have such a check, resulting in the loss
of the element (the call to xmlUnlinkNode(elem) will unlink cur). I
think the equality check should be added to addSibling as well, like in
the attached patch.
yes that makes perfect sense !
Applied and commited,
thanks a lot !
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]