line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use strict; |
3
|
2
|
|
|
2
|
|
84737
|
|
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
67
|
|
4
|
|
|
|
|
|
|
use base 'Rose::HTML::Object'; |
5
|
2
|
|
|
2
|
|
10
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
871
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.606'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->add_valid_html_attrs |
9
|
|
|
|
|
|
|
( |
10
|
|
|
|
|
|
|
'charset', # %Charset; #IMPLIED -- char encoding of linked resource |
11
|
|
|
|
|
|
|
'type', # %ContentType; #IMPLIED -- advisory content type |
12
|
|
|
|
|
|
|
'name', # CDATA #IMPLIED -- named link end |
13
|
|
|
|
|
|
|
'href', # %URI; #IMPLIED -- URI for linked resource |
14
|
|
|
|
|
|
|
'hreflang', # %LanguageCode; #IMPLIED -- language code |
15
|
|
|
|
|
|
|
'rel', # %LinkTypes; #IMPLIED -- forward link types |
16
|
|
|
|
|
|
|
'rev', # %LinkTypes; #IMPLIED -- reverse link types |
17
|
|
|
|
|
|
|
'accesskey', # %Character; #IMPLIED -- accessibility key character |
18
|
|
|
|
|
|
|
'shape', # %Shape; rect -- for use with client-side image maps |
19
|
|
|
|
|
|
|
'coords', # %Coords; #IMPLIED -- for use with client-side image maps |
20
|
|
|
|
|
|
|
'tabindex', # NUMBER #IMPLIED -- position in tabbing order |
21
|
|
|
|
|
|
|
'onfocus', # %Script; #IMPLIED -- the element got the focus |
22
|
|
|
|
|
|
|
'onblur', # %Script; #IMPLIED -- the element lost the focus |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
2
|
|
|
2
|
0
|
16
|
|
27
|
0
|
|
|
0
|
0
|
0
|
|
28
|
0
|
|
|
0
|
0
|
0
|
1; |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
0
|
|
31
|
8
|
|
|
8
|
1
|
93
|
=head1 NAME |
32
|
8
|
|
|
8
|
1
|
55
|
|
33
|
|
|
|
|
|
|
Rose::HTML::Anchor - Object representation of an HTML anchor. |
34
|
4
|
|
|
4
|
1
|
49
|
|
35
|
0
|
|
|
0
|
0
|
|
=head1 SYNOPSIS |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
$a = Rose::HTML::Anchor->new(href => 'apple.html', link => 'Apple'); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
print $a->html; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
$a->link(Rose::HTML::Image->new(src => 'a.gif')); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
print $a->html; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
... |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 DESCRIPTION |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
L<Rose::HTML::Anchor> is an object representation of an HTML anchor, or "a" tag. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This class inherits from, and follows the conventions of, L<Rose::HTML::Object>. Inherited methods that are not overridden will not be documented a second time here. See the L<Rose::HTML::Object> documentation for more information. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 HTML ATTRIBUTES |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Valid attributes: |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
accesskey |
58
|
|
|
|
|
|
|
charset |
59
|
|
|
|
|
|
|
class |
60
|
|
|
|
|
|
|
coords |
61
|
|
|
|
|
|
|
dir |
62
|
|
|
|
|
|
|
href |
63
|
|
|
|
|
|
|
hreflang |
64
|
|
|
|
|
|
|
id |
65
|
|
|
|
|
|
|
lang |
66
|
|
|
|
|
|
|
name |
67
|
|
|
|
|
|
|
onblur |
68
|
|
|
|
|
|
|
onclick |
69
|
|
|
|
|
|
|
ondblclick |
70
|
|
|
|
|
|
|
onfocus |
71
|
|
|
|
|
|
|
onkeydown |
72
|
|
|
|
|
|
|
onkeypress |
73
|
|
|
|
|
|
|
onkeyup |
74
|
|
|
|
|
|
|
onmousedown |
75
|
|
|
|
|
|
|
onmousemove |
76
|
|
|
|
|
|
|
onmouseout |
77
|
|
|
|
|
|
|
onmouseover |
78
|
|
|
|
|
|
|
onmouseup |
79
|
|
|
|
|
|
|
rel |
80
|
|
|
|
|
|
|
rev |
81
|
|
|
|
|
|
|
shape |
82
|
|
|
|
|
|
|
style |
83
|
|
|
|
|
|
|
tabindex |
84
|
|
|
|
|
|
|
title |
85
|
|
|
|
|
|
|
type |
86
|
|
|
|
|
|
|
xml:lang |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=over 4 |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=item B<new PARAMS> |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Constructs a new L<Rose::HTML::Anchor> object based on PARAMS, where PARAMS are name/value pairs. Any object method is a valid parameter name. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=back |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head1 OBJECT METHODS |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=over 4 |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=item B<link [ARGS]> |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
This is an alias for the L<children|Rose::HTML::Object/children> method. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=back |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head1 AUTHOR |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
John C. Siracusa (siracusa@gmail.com) |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 LICENSE |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. |