blib/lib/Mojo/DOM/Role/Form.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 21 | 21 | 100.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
95 | 395 | 1 | 3 | $_[0]->ancestors('fieldset[disabled]')->size and not $_[0]->ancestors('fieldset legend:first-child')->size |
104 | 575 | 13 | 131 | $_[0]->matches($s) and not _form_element_disabled($_[0]) |
line | l | !l | condition |
---|---|---|---|
9 | 20 | 1 | $self->tag // '' |
13 | 3 | 14 | $submit->attr('formmethod') || $self->attr('method') || 'GET' |
14 | 16 | 1 | $submit->attr('formaction') || $self->attr('action') || '#' |
15 | 2 | 15 | $submit->attr('formenctype') || $self->attr('enctype') || 'url-encoded' |
85 | 23 | 7 | (shift())->find('*')->grep(sub { not !$_->_form_element_submits; } )->tap(sub { splice @$_, 1; } )->map(sub { (my $s = $_->selector) =~ s/^.*form[^>]*>\s//; return $s; } )->first || '' |
110 | 2 | 10 | $self->attr($_) || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
11 | 13 | 6 | 1 | $submit || _form_default_submit($self) |