| 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 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 2 | ▶ | warnings::register_categories( 'HTML::Object' ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 2 | ▶ | use parent qw( HTML::Object::DOM::Collection ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | 2 | ▶ | use vars qw( $VERSION ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | 2 | our $VERSION = 'v0.2.0'; | |
| 23 | }; | ||
| 24 | |||
| 25 | 2 | 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 | ||