Condition Coverage

blib/lib/HTML/Detoxifier.pm
Criterion Covered Total %
condition 0 32 0.0


and 3 conditions

line !l l&&!r l&&r condition
451 0 0 0 lc $key eq 'href' and $value =~ /^[a-z]+?script:/is
460 0 0 0 lc $$token[1] eq 'link' and exists $attrs{'rel'} && lc $attrs{'rel'} =~ /^\s*style\s*sheet\s*$/is || exists $attrs{'type'} && lc $attrs{'type'} =~ m[^\s*text/css\s*$]
468 0 0 0 lc $$token[1] eq 'style' and exists $opts{'disallow'}{'dynamic'}
472 0 0 0 lc $$token[1] eq 'img' and $attrs{'src'}
0 0 0 lc $$token[1] eq 'img' and $attrs{'src'} and not $attrs{'alt'}
526 0 0 0 lc $$token[1] eq 'style' and exists $opts{'disallow'}{'dynamic'}

or 2 conditions

line l !l condition
472 0 0 ($attrs{'src'} =~ m[([^/.]*)\.[a-z]+$]gi)[0] || 'image'

or 3 conditions

line l !l&&r !l&&!r condition
414 0 0 0 not exists $opts{'section'} or $opts{'section'} eq 'first'
460 0 0 0 exists $attrs{'rel'} && lc $attrs{'rel'} =~ /^\s*style\s*sheet\s*$/is || exists $attrs{'type'} && lc $attrs{'type'} =~ m[^\s*text/css\s*$]
539 0 0 0 exists $opts{'disallow'}{'comments'} or exists $opts{'disallow'}{'everything'}
544 0 0 0 not exists $opts{'section'} or $opts{'section'} eq 'last'