line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::WidgetValidator::Widget::RakugakiBoard;
|
2
|
1
|
|
|
1
|
|
6
|
use base qw(HTML::WidgetValidator::Widget);
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
119
|
|
3
|
1
|
|
|
1
|
|
7
|
use warnings;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
81
|
|
4
|
1
|
|
|
1
|
|
5
|
use strict;
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
43
|
|
5
|
1
|
|
|
1
|
|
5
|
use Carp;
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
244
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.01';
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
__PACKAGE__->name('Rakugaki Board');
|
10
|
|
|
|
|
|
|
__PACKAGE__->url('http://www.blogdeco.jp/rakugaki/');
|
11
|
|
|
|
|
|
|
__PACKAGE__->models(
|
12
|
|
|
|
|
|
|
[
|
13
|
|
|
|
|
|
|
[
|
14
|
|
|
|
|
|
|
{
|
15
|
|
|
|
|
|
|
type => 'start',
|
16
|
|
|
|
|
|
|
name => 'script',
|
17
|
|
|
|
|
|
|
attr => {
|
18
|
|
|
|
|
|
|
language => 'javascript',
|
19
|
|
|
|
|
|
|
src => qr{http://rakugaki[.]kayac[.]com/rakugaki_tag[.]php[?]rid=\d+},
|
20
|
|
|
|
|
|
|
},
|
21
|
|
|
|
|
|
|
},
|
22
|
|
|
|
|
|
|
{ type => 'end', name => 'script' },
|
23
|
|
|
|
|
|
|
],
|
24
|
|
|
|
|
|
|
[
|
25
|
|
|
|
|
|
|
{ type => 'start', name => 'noscript' },
|
26
|
|
|
|
|
|
|
{
|
27
|
|
|
|
|
|
|
type => 'start',
|
28
|
|
|
|
|
|
|
name => 'a',
|
29
|
|
|
|
|
|
|
attr => {
|
30
|
|
|
|
|
|
|
href => 'http://www.blogdeco.jp/',
|
31
|
|
|
|
|
|
|
target => '_blank',
|
32
|
|
|
|
|
|
|
},
|
33
|
|
|
|
|
|
|
},
|
34
|
|
|
|
|
|
|
{
|
35
|
|
|
|
|
|
|
type => 'start',
|
36
|
|
|
|
|
|
|
name=>'img',
|
37
|
|
|
|
|
|
|
attr => {
|
38
|
|
|
|
|
|
|
src => 'http://www.blogdeco.jp/img/jsWarning.gif',
|
39
|
|
|
|
|
|
|
width => '140',
|
40
|
|
|
|
|
|
|
height => '140',
|
41
|
|
|
|
|
|
|
border => '0',
|
42
|
|
|
|
|
|
|
alt => 'Blogdeco',
|
43
|
|
|
|
|
|
|
},
|
44
|
|
|
|
|
|
|
},
|
45
|
|
|
|
|
|
|
{ type => 'end', name=>'img' },
|
46
|
|
|
|
|
|
|
{ type => 'end', name=>'a' },
|
47
|
|
|
|
|
|
|
{ type => 'end', name=>'noscript' },
|
48
|
|
|
|
|
|
|
],
|
49
|
|
|
|
|
|
|
]
|
50
|
|
|
|
|
|
|
);
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 NAME
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
HTML::WidgetValidator::Widget::RakugakiBoard
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 SYNOPSIS
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
my $validateor = HTML::WidgetValidator->new(widgets => [ 'RakugakiBoard' ]);
|
59
|
|
|
|
|
|
|
my $result = $validateor->validate($html);
|
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 DESCRIPTION
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Validate widget "Rakugaki Board" (BlogDeco)
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SEE ALSO
|
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
L,
|
68
|
|
|
|
|
|
|
L
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 AUTHOR
|
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Yasuhiro Onishi, Eonishi@hatena.ne.jpE
|
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 LICENSE
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Copyright (C) Hatena Inc. All Rights Reserved.
|
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This library is free software; you may redistribute it and/or modify
|
79
|
|
|
|
|
|
|
it under the same terms as Perl itself.
|
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=cut
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
1;
|