blib/lib/HTML/Detoxifier.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 0 | 32 | 0.0 |
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'} |
line | l | !l | condition |
---|---|---|---|
472 | 0 | 0 | ($attrs{'src'} =~ m[([^/.]*)\.[a-z]+$]gi)[0] || 'image' |
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' |