line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::WidgetValidator::Widget::GoogleMaps;
|
2
|
1
|
|
|
1
|
|
5
|
use base qw(HTML::WidgetValidator::Widget);
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
64
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings;
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
4
|
1
|
|
|
1
|
|
4
|
use strict;
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
28
|
|
5
|
1
|
|
|
1
|
|
6
|
use Carp;
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
227
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.01';
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
__PACKAGE__->name('Google Maps');
|
10
|
|
|
|
|
|
|
__PACKAGE__->url('http://maps.google.com/');
|
11
|
|
|
|
|
|
|
__PACKAGE__->models(
|
12
|
|
|
|
|
|
|
[
|
13
|
|
|
|
|
|
|
[
|
14
|
|
|
|
|
|
|
{
|
15
|
|
|
|
|
|
|
name => 'iframe',
|
16
|
|
|
|
|
|
|
type => 'start',
|
17
|
|
|
|
|
|
|
attr => {
|
18
|
|
|
|
|
|
|
src => qr{http://maps[.]google[.](?:com|co[.]jp)/(?:maps(?:/ms)?)?[?][A-Za-z0-9%=&\-_\.\+,:\;]+},
|
19
|
|
|
|
|
|
|
width => qr{\d{2,3}},
|
20
|
|
|
|
|
|
|
height => qr{\d{2,3}},
|
21
|
|
|
|
|
|
|
scrolling => 'no',
|
22
|
|
|
|
|
|
|
frameborder => qr{no|0},
|
23
|
|
|
|
|
|
|
marginwidth => '0',
|
24
|
|
|
|
|
|
|
marginheight => '0',
|
25
|
|
|
|
|
|
|
},
|
26
|
|
|
|
|
|
|
},
|
27
|
|
|
|
|
|
|
{
|
28
|
|
|
|
|
|
|
'name' => 'iframe',
|
29
|
|
|
|
|
|
|
'type' => 'end',
|
30
|
|
|
|
|
|
|
},
|
31
|
|
|
|
|
|
|
],
|
32
|
|
|
|
|
|
|
]
|
33
|
|
|
|
|
|
|
);
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 NAME
|
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
HTML::WidgetValidator::Widget::GoogleMaps
|
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
my $validateor = HTML::WidgetValidator->new(widgets => [ 'GoogleMaps' ]);
|
43
|
|
|
|
|
|
|
my $result = $validateor->validate($html);
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Validate widget "Google Maps"
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 SEE ALSO
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
L,
|
54
|
|
|
|
|
|
|
L
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 AUTHOR
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Yasuhiro Onishi, Eonishi@hatena.ne.jpE
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 LICENSE
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Copyright (C) Hatena Inc. All Rights Reserved.
|
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This library is free software; you may redistribute it and/or modify
|
67
|
|
|
|
|
|
|
it under the same terms as Perl itself.
|
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
1;
|