mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00: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
12 lines
305 B
XML
12 lines
305 B
XML
<?xml version="1.0"?>
|
|
<chapter>
|
|
<p>a simple test</p>
|
|
<p>multiple tests</p>
|
|
<p>a diff<em>i</em>cult one</p>
|
|
<p><p>a span</p>n<p>ing one</p></p>
|
|
<p><p>and an unbal</p><empty/>anced test</p>
|
|
<p>for empty string <seq>123</seq></p>
|
|
<p id="1">a<b>b</b>c</p>
|
|
<p id="2"><!--X-->abc</p>
|
|
</chapter>
|