line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## HTML Object - ~/lib/HTML/Object/DOM/Element/Meta.pm |
3
|
|
|
|
|
|
|
## Version v0.2.0 |
4
|
|
|
|
|
|
|
## Copyright(c) 2021 DEGUEST Pte. Ltd. |
5
|
|
|
|
|
|
|
## Author: Jacques Deguest <jack@deguest.jp> |
6
|
|
|
|
|
|
|
## Created 2021/12/23 |
7
|
|
|
|
|
|
|
## Modified 2022/09/18 |
8
|
|
|
|
|
|
|
## All rights reserved |
9
|
|
|
|
|
|
|
## |
10
|
|
|
|
|
|
|
## |
11
|
|
|
|
|
|
|
## This program is free software; you can redistribute it and/or modify it |
12
|
|
|
|
|
|
|
## under the same terms as Perl itself. |
13
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
14
|
|
|
|
|
|
|
package HTML::Object::DOM::Element::Meta; |
15
|
|
|
|
|
|
|
BEGIN |
16
|
|
|
|
|
|
|
{ |
17
|
11
|
|
|
11
|
|
10030
|
use strict; |
|
11
|
|
|
|
|
37
|
|
|
11
|
|
|
|
|
433
|
|
18
|
11
|
|
|
11
|
|
87
|
use warnings; |
|
11
|
|
|
|
|
30
|
|
|
11
|
|
|
|
|
535
|
|
19
|
11
|
|
|
11
|
|
76
|
use parent qw( HTML::Object::DOM::Element ); |
|
11
|
|
|
|
|
26
|
|
|
11
|
|
|
|
|
110
|
|
20
|
11
|
|
|
11
|
|
1036
|
use vars qw( $VERSION ); |
|
11
|
|
|
|
|
33
|
|
|
11
|
|
|
|
|
826
|
|
21
|
11
|
|
|
11
|
|
289
|
our $VERSION = 'v0.2.0'; |
22
|
|
|
|
|
|
|
}; |
23
|
|
|
|
|
|
|
|
24
|
11
|
|
|
11
|
|
71
|
use strict; |
|
11
|
|
|
|
|
25
|
|
|
11
|
|
|
|
|
338
|
|
25
|
11
|
|
|
11
|
|
63
|
use warnings; |
|
11
|
|
|
|
|
40
|
|
|
11
|
|
|
|
|
2921
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub init |
28
|
|
|
|
|
|
|
{ |
29
|
45
|
|
|
45
|
1
|
4073
|
my $self = shift( @_ ); |
30
|
45
|
|
|
|
|
1705
|
$self->{_init_strict_use_sub} = 1; |
31
|
45
|
50
|
|
|
|
378
|
$self->SUPER::init( @_ ) || return( $self->pass_error ); |
32
|
45
|
50
|
|
|
|
250
|
$self->{tag} = 'meta' if( !CORE::length( "$self->{tag}" ) ); |
33
|
45
|
|
|
|
|
620
|
return( $self ); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub content : lvalue { return( shift->_set_get_property( 'content', @_ ) ); } |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
0
|
1
|
|
sub httpEquiv : lvalue { return( shift->_set_get_property( 'httpequiv', @_ ) ); } |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
1
|
|
sub name : lvalue { return( shift->_set_get_property( 'name', @_ ) ); } |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
0
|
1
|
|
sub scheme : lvalue { return( shift->_set_get_property( 'scheme', @_ ) ); } |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
1; |
45
|
|
|
|
|
|
|
# NOTE: POD |
46
|
|
|
|
|
|
|
__END__ |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=encoding utf-8 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 NAME |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
HTML::Object::DOM::Element::Meta - HTML Object DOM Meta Class |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 SYNOPSIS |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
use HTML::Object::DOM::Element::Meta; |
57
|
|
|
|
|
|
|
my $meta = HTML::Object::DOM::Element::Meta->new || |
58
|
|
|
|
|
|
|
die( HTML::Object::DOM::Element::Meta->error, "\n" ); |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 VERSION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
v0.2.0 |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 DESCRIPTION |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This interface contains descriptive metadata about a document. It inherits all of the properties and methods described in the L<HTML::Object::Element> interface. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 INHERITANCE |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +----------------------------------+ |
71
|
|
|
|
|
|
|
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::Meta | |
72
|
|
|
|
|
|
|
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +----------------------------------+ |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 PROPERTIES |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Inherits properties from its parent L<HTML::Object::DOM::Element> |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 content |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Gets or sets the value of meta-data property. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 httpEquiv |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Gets or sets the name of an HTTP response header to define for a document. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head2 name |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Gets or sets the name of a meta-data property to define for a document. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head2 scheme |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Gets or sets the name of a scheme used to interpret the value of a meta-data property. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 METHODS |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
Inherits methods from its parent L<HTML::Object::DOM::Element> |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head1 AUTHOR |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 SEE ALSO |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement>, L<Mozilla documentation on meta element|https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta> |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Copyright(c) 2021 DEGUEST Pte. Ltd. |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
All rights reserved |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=cut |