Skip Menu |

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

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

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

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



Subject: { recover => 2 } doesn't work with load_html
It seems that the bug #58024 wasn't fixed completely: https://rt.cpan.org/Public/Bug/Display.html?id=58024 Passing { recover => 2 } directly to load_html doesn't work: #!/usr/bin/perl use strict; use warnings; use XML::LibXML; use Test::More; my $err_html = '<html><body><lkj/></body></html>'; my $parser = XML::LibXML->new(); my $buf = ''; open(my $fh, '>', \$buf); { local *STDERR = $fh; $parser->load_html( string => $err_html, recover => 2, ); } close($fh); is($buf, '', 'no warning emitted');
Thanks for the report. This was fixed in commit 938649057e333e0875ecf8dbb3f857a7222973ed and will be part of the next release. RESOLVing. Regards, -- Shlomi Fish On Fri Feb 28 08:57:32 2014, NWELLNHOF wrote: Show quoted text
> It seems that the bug #58024 wasn't fixed completely: > > https://rt.cpan.org/Public/Bug/Display.html?id=58024 > > Passing { recover => 2 } directly to load_html doesn't work: > > #!/usr/bin/perl > use strict; > use warnings; > > use XML::LibXML; > use Test::More; > > my $err_html = '<html><body><lkj/></body></html>'; > my $parser = XML::LibXML->new(); > my $buf = ''; > open(my $fh, '>', \$buf); > { > local *STDERR = $fh; > $parser->load_html( > string => $err_html, > recover => 2, > ); > } > close($fh); > > is($buf, '', 'no warning emitted');