HTML::O...:Option(3)
πΈ NAME πΈ
Okay so this is HTML::Object::DOM::Element::Option β the HTML Object DOM Option Class. Itβs the HTML::O...:Option(3) man page, from User Contributed Perl Documentation. Bestie, this is the whole class vibe.
β¨ SYNOPSIS β¨
Load it up like this, no cap:
use HTML::Object::DOM::Element::Option;
my $opt = HTML::Object::DOM::Element::Option->new ||
die( HTML::Object::DOM::Element::Option->error, "\n" );
π VERSION π
v0.3.0 β thatβs the version, periodt π
.
π DESCRIPTION π
This interface represents "<option"> elements and inherits all properties and methods of the HTML::Object::Element interface. So yeah, itβs got the whole family tree backing it.
π¦ INHERITANCE π¦
The lineage is literally this chain, bestie:
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +------------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::Option |
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +------------------------------------+
π PROPERTIES π
Inherits properties from its parent HTML::Object::DOM::Element. Cute.
defaultSelected
Itβs got a value of either true or false that shows the initial value of the selected HTML attribute, indicating whether the option is selected by default or not. Iconic.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/defaultSelected
disabled
Itβs got a value of either true or false representing the value of the disabled HTML attribute, which indicates that the option is unavailable to be selected. An option can also be disabled if it is a child of an <optgroup> element that is disabled. π
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/disabled
form
Read-only. Itβs a HTML::Object::DOM::Element::Form representing the same value as the form of the corresponding <select> element, if the option is a descendant of a <select> element, or undef if none is found.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/form
index
Read-only. Itβs a long representing the position of the option within the list of options it belongs to, in tree-order. If the option is not part of a list of options, like when itβs part of the datalist element, the value is undef.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/index
label
Read-only. Itβs a string that reflects the value of the label HTML attribute, which provides a label for the option. If this attribute is not specifically set, reading it returns the elementβs text content.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/label
selected
Itβs got a value of either true or false that indicates whether the option is currently selected. Main character energy.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/selected
text
Itβs a string that contains the text content of the element.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/text
value
Itβs a string that reflects the value of the value HTML attribute, if it exists; otherwise reflects value of the Node.textContent property.
See also Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/value
π METHODS π
Inherits methods from its parent HTML::Object::DOM::Element. Thatβs it. Slay.
π AUTHOR π
Jacques Deguest β jack@deguest.jp
π SEE ALSO π
- Mozilla documentation:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement - Mozilla documentation on option element:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option
π COPYRIGHT & LICENSE π
Copyright(c) 2021 DEGUEST Pte. Ltd.
All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Thatβs the whole manual, bestie π«Άβ¨. This page is from perl v5.42.2, dated 2026-02-15, and itβs the HTML::O...:Option(3) man page. Bye π.
π¦ where this page comes from
- alpine 3.24: perl-html-object-doc 0.6.0-r1 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms