File Coverage

lib/HTML/Object/DOM/Element/OptionsCollection.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 18 18 100.0


line stmt bran cond sub pod time code
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 2     2   1815 use strict;
  2         6  
  2         66  
18 2     2   11 use warnings;
  2         4  
  2         67  
19 2     2   16 use parent qw( HTML::Object::DOM::Collection );
  2         4  
  2         17  
20 2     2   127 use vars qw( $VERSION );
  2         7  
  2         84  
21 2     2   64 our $VERSION = 'v0.2.0';
22             };
23              
24             1;
25             # NOTE: POD
26             __END__
27              
28             =encoding utf-8
29              
30             =head1 NAME
31              
32             HTML::Object::DOM::Element::OptionsCollection - HTML Object DOM Options Collection
33              
34             =head1 SYNOPSIS
35              
36             use HTML::Object::DOM::Element::OptionsCollection;
37             my $list = HTML::Object::DOM::Element::OptionsCollection->new ||
38             die( HTML::Object::DOM::Element::OptionsCollection->error, "\n" );
39              
40             =head1 VERSION
41              
42             v0.2.0
43              
44             =head1 DESCRIPTION
45              
46             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>.
47              
48             =head1 INHERITANCE
49              
50             +-------------------------------+ +-----------------------------------------------+
51             | HTML::Object::DOM::Collection | --> | HTML::Object::DOM::Element::OptionsCollection |
52             +-------------------------------+ +-----------------------------------------------+
53              
54             =head1 PROPERTIES
55              
56             Inherits properties from its parent L<HTML::Object::DOM::Collection>
57              
58             =head2 length
59              
60             Read-only.
61              
62             This returns the number of options contained in the select element.
63              
64             See also L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/length>
65              
66             =head1 METHODS
67              
68             Inherits methods from its parent L<HTML::Object::DOM::Collection>
69              
70             =head1 AUTHOR
71              
72             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
73              
74             =head1 SEE ALSO
75              
76             L<Mozilla documentation|https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection>
77              
78             =head1 COPYRIGHT & LICENSE
79              
80             Copyright(c) 2022 DEGUEST Pte. Ltd.
81              
82             All rights reserved
83              
84             This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
85              
86             =cut