blib/lib/HTML/Object/DOM/Element/OptionsCollection.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 ##----------------------------------------------------------------------------
2 ## HTML Object - ~/lib/HTML/Object/DOM/Element/OptionsCollection.pm
3 ## Version v0.2.0
4 ## Copyright(c) 2022 DEGUEST Pte. Ltd.
5 ## Author: Jacques Deguest <jack@deguest.jp>
6 ## Created 2022/01/05
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::OptionsCollection;
15 BEGIN
16 {
17 use strict;
18 use warnings;
19 warnings::register_categories( 'HTML::Object' );
20 use parent qw( HTML::Object::DOM::Collection );
21 use vars qw( $VERSION );
22 our $VERSION = 'v0.2.0';
23 };
24  
25 1;
26 # NOTE: POD
27 __END__
28  
29 =encoding utf-8
30  
31 =head1 NAME
32  
33 HTML::Object::DOM::Element::OptionsCollection - HTML Object DOM Options Collection
34  
35 =head1 SYNOPSIS
36  
37 use HTML::Object::DOM::Element::OptionsCollection;
38 my $list = HTML::Object::DOM::Element::OptionsCollection->new ||
39 die( HTML::Object::DOM::Element::OptionsCollection->error, "\n" );
40  
41 =head1 VERSION
42  
43 v0.2.0
44  
45 =head1 DESCRIPTION
46  
47 The C<OptionsCollection> interface represents a collection of L<option HTML elements|HTML::Object::DOM::Element::Option> (in document order) and offers methods and properties for selecting from the list as well as optionally altering its items. This object is returned only by the L<options property of select|HTML::Object::DOM::Element/options>.
48  
49 =head1 INHERITANCE
50  
51 +-------------------------------+ +-----------------------------------------------+
52 | HTML::Object::DOM::Collection | --> | HTML::Object::DOM::Element::OptionsCollection |
53 +-------------------------------+ +-----------------------------------------------+
54  
55 =head1 PROPERTIES
56  
57 Inherits properties from its parent L<HTML::Object::DOM::Collection>
58  
59 =head2 length
60  
61 Read-only.
62  
63 This returns the number of options contained in the select element.
64  
65 See also L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/length>
66  
67 =head1 METHODS
68  
69 Inherits methods from its parent L<HTML::Object::DOM::Collection>
70  
71 =head1 AUTHOR
72  
73 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
74  
75 =head1 SEE ALSO
76  
77 L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection>
78  
79 =head1 COPYRIGHT & LICENSE
80  
81 Copyright(c) 2022 DEGUEST Pte. Ltd.
82  
83 All rights reserved
84  
85 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
86  
87 =cut