Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: the.rob.dixon [...] gmail.com
Cc:
AdminCc:

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



Subject: The attributes method of an XML::LibXML::Text node in list context wrongly returns (undef)
Date: Sat, 27 Feb 2016 08:58:32 +0000
To: bug-XML-LibXML [...] rt.cpan.org
From: Rob Dixon <the.rob.dixon [...] gmail.com>
Download (untitled) / with headers
text/plain 337b
A call like my @attr = $node->attributes will set `@attr` to contain a single element with the value `undef`. This should be an empty list. The fix is simple. The method, on line 1778 of LibXML.pm, should be changed from sub attributes { return undef; } to sub attributes { return } Thanks, Rob Dixon Norfolk England
Download (untitled) / with headers
text/plain 482b
On Sat Feb 27 03:58:41 2016, the.rob.dixon@gmail.com wrote: Show quoted text
> A call like > > my @attr = $node->attributes > > will set `@attr` to contain a single element with the value `undef`. This > should be an empty list. > > The fix is simple. The method, on line 1778 of LibXML.pm, should be changed > from > > sub attributes { return undef; } > > to > > sub attributes { return } > > Thanks, > > Rob Dixon > Norfolk > England
Thanks for the report! I'll look into it.
Download (untitled) / with headers
text/plain 602b
On Sat Feb 27 05:54:13 2016, SHLOMIF wrote: Show quoted text
> On Sat Feb 27 03:58:41 2016, the.rob.dixon@gmail.com wrote:
> > A call like > > > > my @attr = $node->attributes > > > > will set `@attr` to contain a single element with the value `undef`. > > This > > should be an empty list. > > > > The fix is simple. The method, on line 1778 of LibXML.pm, should be > > changed > > from > > > > sub attributes { return undef; } > > > > to > > > > sub attributes { return } > > > > Thanks, > > > > Rob Dixon > > Norfolk > > England
> > Thanks for the report! I'll look into it.
Fixed in 2.0124 (with a test). Thanks!


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.