Skip Menu |
 

This queue is for tickets about the XML-LibXML CPAN distribution.

Report information
The Basics
Id: 75259
Status: resolved
Priority: 0/
Queue: XML-LibXML

People
Owner: Nobody in particular
Requestors: dwheeler [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 803b
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
Download (untitled) / with headers
text/plain 1005b
On Thu Feb 23 23:32:17 2012, DWHEELER wrote: Show quoted text
> 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: >
> > 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: >
> > - 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`. >
This should be fixed in XML-LibXML-1.93, which was just uploaded to CPAN. Thanks for the report. Regards, — Shlomi Fish


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.