Subject: | XML::LibXML::Elements Breaks Equality |
Date: | Thu, 23 Feb 2012 20:32:04 -0800 |
To: | bug-xml-libxml [...] rt.cpan.org |
From: | "David E. Wheeler" <dwheeler [...] cpan.org> |
Got a failure for Test::XPath using XML::LibXML 1.92 today:
http://www.cpantesters.org/cpan/report/ae6d5304-5e0f-11e1-a134-5c0e23a3b3ef
The relevant error is:
Show quoted text
> Operation "ne": no method found,
> left argument in overloaded package XML::LibXML::Element,
> right argument in overloaded package XML::LibXML::Element at /Users/david/dev/cpan/test-xpath/lib/Test/XPath.pm line 34.
I don't know, but suspect that it's due to this change in 1.91:
Show quoted text> - Overload hash dereferencing on XML::LibXML::Elements, to provide
> access to the element's attributes.
> - See XML::LibXML::AttributeHash for details.
> - Thanks to Toby Inkster.
I suspect that string comparison operators need to be restored. These would allow one to compare nodes, e.g., `$node ne $node`.
Thanks,
David