mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-27 12:15:34 +03:00
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
14 lines
214 B
Plaintext
14 lines
214 B
Plaintext
|
|
========================
|
|
Expression: //p[.='abc']
|
|
Object is a Node Set :
|
|
Set contains 2 nodes:
|
|
1 ELEMENT p
|
|
ATTRIBUTE id
|
|
TEXT
|
|
content=1
|
|
2 ELEMENT p
|
|
ATTRIBUTE id
|
|
TEXT
|
|
content=2
|