Branch Coverage

blib/lib/Mojo/DOM/Role/Form.pm
Criterion Covered Total %
branch 14 14 100.0


line true false branch
9 1 20 if ($self->tag // '') ne 'form'
11 1 19 unless defined($submit = $self->at($submit || _form_default_submit($self)))
12 2 17 if $submit->matches('[disabled]')
94 42 399 if $_[0]->matches('[disabled]')
95 3 396 if $_[0]->ancestors('fieldset[disabled]')->size and not $_[0]->ancestors('fieldset legend:first-child')->size
104 131 588 if $_[0]->matches($s) and not _form_element_disabled($_[0])
112 3 3 unless $name