From: Marius Gavrilescu Date: Sat, 7 Feb 2015 09:12:52 +0000 (+0200) Subject: Iterate on tr not tbody in process_pb X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=caafa703ea07c02254cc23227dc89c4c1e7b91ed;p=plack-app-gruntmaster.git Iterate on tr not tbody in process_pb --- diff --git a/lib/Plack/App/Gruntmaster/HTML.pm b/lib/Plack/App/Gruntmaster/HTML.pm index 8f47616..117d1b4 100644 --- a/lib/Plack/App/Gruntmaster/HTML.pm +++ b/lib/Plack/App/Gruntmaster/HTML.pm @@ -188,7 +188,7 @@ sub process_pb { my ($data, $div) = @_; $div->attr(id => $data); $div->find('h2')->replace_content(ucfirst $data); - $div->find('tbody')->iter3($args{$data}, $titer); + $div->find('tbody')->find('tr')->iter3($args{$data}, $titer); }; $tree->fid('beginner')->iter3([grep {$args{$_}} qw/beginner easy medium hard/], $iter); }