line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## HTML Object - ~/lib/HTML/Object/DOM/Element/BR.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::BR; |
15
|
|
|
|
|
|
|
BEGIN |
16
|
|
|
|
|
|
|
{ |
17
|
3
|
|
|
3
|
|
3584
|
use strict; |
|
3
|
|
|
|
|
14
|
|
|
3
|
|
|
|
|
125
|
|
18
|
3
|
|
|
3
|
|
18
|
use warnings; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
139
|
|
19
|
3
|
|
|
3
|
|
21
|
use parent qw( HTML::Object::DOM::Element ); |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
28
|
|
20
|
3
|
|
|
3
|
|
340
|
use vars qw( $VERSION ); |
|
3
|
|
|
|
|
12
|
|
|
3
|
|
|
|
|
223
|
|
21
|
3
|
|
|
3
|
|
86
|
our $VERSION = 'v0.2.0'; |
22
|
|
|
|
|
|
|
}; |
23
|
|
|
|
|
|
|
|
24
|
3
|
|
|
3
|
|
17
|
use strict; |
|
3
|
|
|
|
|
12
|
|
|
3
|
|
|
|
|
66
|
|
25
|
3
|
|
|
3
|
|
26
|
use warnings; |
|
3
|
|
|
|
|
10
|
|
|
3
|
|
|
|
|
536
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub init |
28
|
|
|
|
|
|
|
{ |
29
|
2
|
|
|
2
|
1
|
162
|
my $self = shift( @_ ); |
30
|
2
|
|
|
|
|
364
|
$self->{_init_strict_use_sub} = 1; |
31
|
2
|
50
|
|
|
|
30
|
$self->SUPER::init( @_ ) || return( $self->pass_error ); |
32
|
2
|
50
|
|
|
|
12
|
$self->{tag} = 'br' if( !CORE::length( "$self->{tag}" ) ); |
33
|
2
|
|
|
|
|
22
|
return( $self ); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub clear : lvalue { return( shift->_set_get_property( 'clear', @_ ) ); } |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
1; |
39
|
|
|
|
|
|
|
# NOTE: POD |
40
|
|
|
|
|
|
|
__END__ |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=encoding utf-8 |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 NAME |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
HTML::Object::DOM::Element::BR - HTML Object DOM Line Break Class |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 SYNOPSIS |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
use HTML::Object::DOM::Element::BR; |
51
|
|
|
|
|
|
|
my $this = HTML::Object::DOM::Element::BR->new || |
52
|
|
|
|
|
|
|
die( HTML::Object::DOM::Element::BR->error, "\n" ); |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 VERSION |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
v0.2.0 |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 DESCRIPTION |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This interface represents a HTML line break element (<br>). It inherits from L<HTML::Object::Element>. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 INHERITANCE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +--------------------------------+ |
65
|
|
|
|
|
|
|
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::BR | |
66
|
|
|
|
|
|
|
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +--------------------------------+ |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 PROPERTIES |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Inherits properties from its parent L<HTML::Object::DOM::Element> |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head2 clear |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Is a string indicating the flow of text around floating objects. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
See also L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement/clear> |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 METHODS |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Inherits methods from its parent L<HTML::Object::DOM::Element> |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 AUTHOR |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 SEE ALSO |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement>, L<Mozilla documentation on br element|https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br> |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
Copyright(c) 2021 DEGUEST Pte. Ltd. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
All rights reserved |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=cut |