HTML::O...:Option(3)

πŸ“¦ version 0.6.0, in alpine 3.24

🌸 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 🌈

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