commit | 5af594d8bc55121ae454cba4d05793d1db7ff612 | [log] [tgz] |
---|---|---|
author | Nick Wellnhofer <wellnhofer@aevum.de> | Sat Oct 07 14:54:45 2017 +0200 |
committer | Nick Wellnhofer <wellnhofer@aevum.de> | Sat Oct 07 15:22:57 2017 +0200 |
tree | a42a86afb753e99bdaaacb9cbe48db7bbe57febe | |
parent | 0c91391683b41c718f5e82a3ce41735d95eeb049 [diff] |
Fix comparison of nodesets to strings Fix two bugs in xmlXPathNodeValHash which could lead to errors when comparing nodesets to strings: - Only use contents of text nodes to compute the hash for element nodes. Comments, PIs, and other node types don't affect the string-value and must be ignored. - Reset `string` to NULL for node types other than text. Reported by Aleksei on the mailing list: https://mail.gnome.org/archives/xml/2017-September/msg00016.html