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