Branch Coverage

blib/lib/HTML/DOM/Collection.pm
Criterion Covered Total %
branch 15 18 83.3


line true false branch
27 9 30 unless $$self->[1]
48 2 251 if ($elem = $list->item($_))->id eq $name
49 22 229 if exists $NameableElements{$elem->tag} and $elem->attr('name') eq $name
54 1 22 unless $named_elem
72 2 0 if defined($id = ($item = $self->item($_))->id)
79 0 0 if defined($id = ($item = $self->item($_))->attr('name'))
89 6 2 if ($guts->[4])
92 5 8 if defined($id = ($item = $self->item($_))->id) and not $guts->[2]{$id}++
101 2 14 if defined($id = ($item = $self->item($_))->attr('name')) and not $guts->[2]{$id}++