1 use Test::More tests => 2;
9 my $p = HTML::Parser->new(api_version => 3);
10 $p->handler(start => \@start, '@{tagname, @attr}');
11 $p->handler(text => \@text, '@{dtext}');
12 $p->parse(<<EOT)->eof;
14 <a href="abc">Foo</a><b>:-)</b>
17 is("@start", "a href abc b");
19 is(join("", @text), "Hi\nFoo:-)\n");