[xml] xmlReplaceNode does not merge adjacent text nodes



I've created an open issue at https://bugzilla.gnome.org/show_bug.cgi?id=615612

As I understand, the convention is for libxml2 to merge adjacent text nodes whenever possible, and every method that I'm aware of to reparent / insert nodes does this correctly, with the exception of xmlReplaceNode.

I've posted example code demonstrating this issue at http://gist.github.com/364297

I'm pretty sure this isn't intended behavior, but if it is, could someone provide a short explanation?

Thanks very much for your time.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]