1 use Test::More tests => 3;
7 <style> h1 { background: white }
10 <H1 ID="3">Heading</H1>
13 This is a text with a <A HREF="http://www.sol.no" name="l1">link</a>.
16 my $p = HTML::PullParser->new(doc => $doc,
17 start => 'event,tagname,@attr',
18 end => 'event,tagname',
19 text => 'event,dtext',
21 ignore_elements => [qw(script style)],
23 boolean_attribute_value => 1,
26 my $t = $p->get_token;
32 while (my $t = $p->get_token) {
36 push(@a, join("|", @$t));
39 my $res = join("\n", @a, "");
49 text|...This.is.a.text.with.a.
50 start|a|href|http://www.sol.no|name|l1