File Coverage

lib/HTML/Object/DOM/Element/Unknown.pm
Criterion Covered Total %
statement 19 23 82.6
branch 0 2 0.0
condition n/a
subroutine 7 8 87.5
pod 1 1 100.0
total 27 34 79.4


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## HTML Object - ~/lib/HTML/Object/DOM/Element/Unknown.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::Unknown;
15             BEGIN
16             {
17 1     1   1002 use strict;
  1         2  
  1         35  
18 1     1   5 use warnings;
  1         2  
  1         29  
19 1     1   5 use parent qw( HTML::Object::DOM::Element );
  1         2  
  1         5  
20 1     1   63 use vars qw( $VERSION );
  1         2  
  1         54  
21 1     1   35 our $VERSION = 'v0.2.0';
22             };
23              
24 1     1   5 use strict;
  1         2  
  1         29  
25 1     1   16 use warnings;
  1         2  
  1         98  
26              
27             sub init
28             {
29 0     0 1   my $self = shift( @_ );
30 0           $self->{_init_strict_use_sub} = 1;
31 0 0         $self->SUPER::init( @_ ) || return( $self->pass_error );
32 0           return( $self );
33             }
34              
35             1;
36             # NOTE: POD
37             __END__
38              
39             =encoding utf-8
40              
41             =head1 NAME
42              
43             HTML::Object::DOM::Element::Unknown - HTML Object DOM Unknown Element Class
44              
45             =head1 SYNOPSIS
46              
47             use HTML::Object::DOM::Element::Unknown;
48             my $unknown = HTML::Object::DOM::Element::Unknown->new ||
49             die( HTML::Object::DOM::Element::Unknown->error, "\n" );
50              
51             =head1 VERSION
52              
53             v0.2.0
54              
55             =head1 DESCRIPTION
56              
57             The C<Unknown> element interface represents an invalid L<HTML element|HTML::Object::DOM::Element> and derives from the HTML Element interface, but without implementing any additional properties or methods.
58              
59             =head1 INHERITANCE
60              
61             +-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +-------------------------------------+
62             | HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::Unknown |
63             +-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +-------------------------------------+
64              
65             =head1 PROPERTIES
66              
67             Inherits properties from its parent L<HTML::Object::DOM::Element>
68              
69             =head1 METHODS
70              
71             Inherits methods from its parent L<HTML::Object::DOM::Element>
72              
73             =head1 AUTHOR
74              
75             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
76              
77             =head1 SEE ALSO
78              
79             L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/API/HTMLUnknownElement>, L<Specifications|https://html.spec.whatwg.org/multipage/dom.html#htmlunknownelement>
80              
81             =head1 COPYRIGHT & LICENSE
82              
83             Copyright(c) 2021 DEGUEST Pte. Ltd.
84              
85             All rights reserved
86              
87             This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
88              
89             =cut