Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the Test-DoubleEncodedEntities CPAN distribution.

Report information
The Basics
Id: 18612
Status: new
Priority: 0/
Queue: Test-DoubleEncodedEntities

Owner: Nobody in particular
Requestors: jeff [...]

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

Subject: DoubleEncodedEntities does not work with HTML::TokeParser::Simple v. 3.15
MIME-Version: 1.0
X-Mailer: MIME-tools 5.418 (Entity 5.418)
Content-Type: text/plain; charset="utf8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 1142
Download (untitled) / with headers
text/plain 1.1k
HTML::TokeParser::Simple v. 3.15 does not accept "doc =>" in the constructor, it wants "string =>". I'm not sure when the change in HTML::TokeParser::Simple was made, but the Build.PL file should probably be more strict about the required version. OS (Tiger 10.4.6) & perl version: [goo:~] jeff% uname -a; perl -v Darwin goo 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh powerpc This is perl, v5.8.6 built for darwin-thread-multi-2level (with 2 registered patches, see perl -V for more detail) The following diff against lib/Test/ fixes the issue: --- Test-DoubleEncodedEntities-0.01/lib/Test/ 2004-08-23 05:40:33.000000000 -0700 +++ Test-DoubleEncodedEntities-0.02/lib/Test/ 2006-04-08 22:27:00.000000000 -0700 @@ -24,7 +24,7 @@ my $name = shift || "double encoded entity test"; # parse the input - my $p = HTML::TokeParser::Simple->new( doc => $input ) + my $p = HTML::TokeParser::Simple->new( string => $input ) or die "Can't parse input"; $p->unbroken_text(1);

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

Please report any issues with to