blib/lib/HTML/Blitz/Parser.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 19 | 24 | 79.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
25 | 3 | 24 | 0 | @_ > 2 and (@_ - 2) % 2 |
278 | 1 | 0 | 1 | $self->{'in_foreign_elem'} and $$src_ref =~ /\G\[CDATA\[/cgu |
379 | 1536 | 18 | 4 | $is_self_closing and not $is_void |
1554 | 2 | 2 | $is_self_closing and not $is_void and not $foreign_tags{$name} | |
20 | 1 | 1 | $is_self_closing and not $is_void and not $foreign_tags{$name} and not $self->{'in_foreign_elem'} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
45 | 7 | 0 | 3 | $type eq ':TT-TAG-OPEN' || $type eq ':TT-TAG-CLOSE' |
143 | 132 | 0 | 0 | $entities{$1} // $self->_fail("invalid character reference '$1' after '&'", "pos", $-[1], "width", length $1) |
382 | 21 | 170 | 1366 | $is_self_closing ||= $is_void |