File Coverage

blib/lib/Rose/HTML/Form/Field/Input.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 5 6 83.3
pod 4 4 100.0
total 18 20 90.0


line stmt bran cond sub pod time code
1              
2             use strict;
3 32     32   214  
  32         56  
  32         847  
4             use base 'Rose::HTML::Form::Field';
5 32     32   139  
  32         53  
  32         13180  
6             our $VERSION = '0.607';
7              
8             __PACKAGE__->add_valid_html_attrs
9             (
10             'size', # CDATA #IMPLIED -- specific to each type of field --
11             'maxlength', # NUMBER #IMPLIED -- max chars for text fields --
12             'src', # %URI; #IMPLIED -- for fields with images --
13             'alt', # CDATA #IMPLIED -- short description --
14             'usemap', # %URI; #IMPLIED -- use client-side image map --
15             'ismap', # (ismap) #IMPLIED -- use server-side image map --
16             'tabindex', # NUMBER #IMPLIED -- position in tabbing order --
17             'accesskey', # %Character; #IMPLIED -- accessibility key character --
18             'onfocus', # %Script; #IMPLIED -- the element got the focus --
19             'onblur', # %Script; #IMPLIED -- the element lost the focus --
20             'onselect', # %Script; #IMPLIED -- some text was selected --
21             'onchange', # %Script; #IMPLIED -- the element value was changed --
22             'accept', # %ContentTypes; #IMPLIED -- list of MIME types for file upload --
23             'type', # %InputType; "text"
24             'name', # CDATA #IMPLIED
25             'value', # CDATA #IMPLIED
26             'checked', # (checked) #IMPLIED
27             'disabled', # (disabled) #IMPLIED
28             'readonly', # (readonly) #IMPLIED
29             'placeholder',
30             'formaction',
31             'formenctype',
32             'formmethod',
33             'formnovalidate',
34             'formtarget',
35             'min',
36             'max',
37             'step',
38             );
39              
40             __PACKAGE__->add_required_html_attrs(
41             {
42             type => 'text',
43             });
44              
45             __PACKAGE__->add_boolean_html_attrs
46             (
47             'disabled',
48             'readonly',
49             'ismap',
50             'checked',
51             );
52              
53              
54 0     0 1 0  
55 1259     1259 1 4178 1;