Hi there,

Here is a problem: HTML-Tree-3.17/t/parsefile.t fails with recent
HTML::Parser releases.  This is because of the following change in
HTML::Parser:

     Release 3.29

     ...

       - Incomplete tag at eof is reported as a 'comment' instead
         of 'text' unless strict_comment is enabled.

Here is a quick patch that fixes the test, but please consider...

Thanks,
Alexey Tourbin
ALT Linux Team
--- HTML-Tree-3.17/lib/HTML/TreeBuilder.pm~     2002-08-16 17:49:28 +0000
+++ HTML-Tree-3.17/lib/HTML/TreeBuilder.pm      2003-09-04 16:22:44 +0000
@@ -138,6 +138,8 @@ sub new { # constructor!
   {
     # A hack for certain strange versions of Parser:
     my $other_self = HTML::Parser->new();
+    # test compatibility (incomplete tags...)
+    $other_self->strict_comment() if $HTML::Parser::VERSION >= 3.29;
     %$self = (%$self, %$other_self);              # copy fields
       # Yes, multiple inheritance is messy.  Kids, don't try this at home.
     bless $other_self, "HTML::TreeBuilder::_hideyhole";

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to