HTML::O...ptGroup(3)
π HTML::O...ptGroup(3) β like, the whole entire manual, bestie
Okay so this is the page for HTML::Object::DOM::Element::OptGroup, straight out of the User Contributed Perl Documentation section, and yes the header is doing that abbreviated HTML::O...ptGroup(3) thing because even manpage titles get shy sometimes. Sit down, grab a strawberry π, we're learning about <optgroup> today and it's gonna be adorable.
β¨ NAME β¨
HTML::Object::DOM::Element::OptGroup β the HTML Object DOM OptGroup Class. That's it, that's the name, she's an icon, she's a class, she handles optgroups. Periodt. π
π SYNOPSIS π
Here's how you actually summon one, copy-paste blessed:
use HTML::Object::DOM::Element::OptGroup;
my $group = HTML::Object::DOM::Element::OptGroup->new ||
die( HTML::Object::DOM::Element::OptGroup->error, "\n" );
Notice the || die(...) β because if the constructor flops, we're printing HTML::Object::DOM::Element::OptGroup->error and a "\n" and then leaving. No silent failures in this house. π
π¦ VERSION π¦
v0.2.0
Tiny version number, big main character energy. π
πΈ DESCRIPTION πΈ
So, what does this thing do? This interface hands you special properties and methods β and yes, on top of the regular HTML::Object::Element object interface that they already get by inheritance, because nepo babies exist and honestly good for them π β all for the purpose of manipulating the layout and presentation of "<optgroup"> elements.
That's the whole job. Layout. Presentation. <optgroup> care and keeping. Slay.
π INHERITANCE π
The family tree is giving royalty, look at this lineage:
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +--------------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::OptGroup |
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +--------------------------------------+
Five generations deep and every single one of them is serving. HTML::Object::DOM::Element::OptGroup is literally the youngest of the line and she inherited everything. π«Ά
π§ PROPERTIES π§
She inherits properties from her parent, HTML::Object::DOM::Element. (Yes, the one right there in the diagram. Her mom. Iconic.)
π disabled
Is a boolean value representing whether or not the whole list of children "<option"> is disabled (true) or not (false).
Like, the entire group of options, all at once, no takebacks β true means they're all off the table, false means they're live. So dramatic and so efficient. π
See also Mozilla documentation https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/disabled
π label
Is a string representing the label for the group.
That's the little name tag the group wears. A string. Very simple, very chic. πΈ
See also Mozilla documentation https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/label
β METHODS β
She inherits methods from her parent, HTML::Object::DOM::Element. No new methods of her own listed here β she's got hand-me-downs and they're good hand-me-downs. Ngl, lowkey the comfiest way to be. π¦
π AUTHOR π
Jacques Deguest <jack@deguest.jp>
The genius behind the whole thing. Respect. π«‘
π SEE ALSO π
- Mozilla documentation
https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement - Mozilla documentation on optgroup element
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup
Go read them, they're the reference material for all of this, iykyk. π
π 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.
π«Ά Fr fr, it's free software β same terms as Perl itself, redistribute and/or modify as you please, but keep that notice, bestie. All rights reserved is right there and we respect it.
π the sign-off π
This little beauty shipped as part of perl v5.42.2, dated 2026-02-15, and you can find her filed under HTML::O...ptGroup(3) in the manual pages. Go forth, manipulate those <optgroup> layouts, and remember: layout and presentation are a lifestyle. π
β¨π
π¦ 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