HTML::O...t::OList(3)
π HTML::Object::DOM::Element::OList β the ordered-list glow-up
Okay bestie, so this page is HTML::O...t::OList(3) (yes the header truncates it, we don't gatekeep, it's the HTML Object DOM OL List Class). Grab a lil snack π and let's get into it, because ordered lists are genuinely iconic and this class is their whole personality.
β¨ SYNOPSIS β¨
use HTML::Object::DOM::Element::OList;
my $ol = HTML::Object::DOM::Element::OList->new ||
die( HTML::Object::DOM::Element::OList->error, "\n" );
Look at her go π she's born, she's constructed, and if she isn't? She tells you exactly why with ->error and a newline. Iconic error handling, no notes.
π VERSION π
v0.2.0
That's the version, keep it in your notes fr fr.
πΈ DESCRIPTION πΈ
So this interface gives you the special properties β the ones beyond what the regular HTML::Object::Element interface already has, plus everything she also has available to her by inheritance β for manipulating ordered list elements. Basically: if it's an <ol>, this class is the one who actually knows her. π
π¦ INHERITANCE π¦
The whole family tree, and the way it's laid out is honestly giving royal lineage π:
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +-----------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::OList |
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------+ +-----------------------------------+
Five generations deep and she inherited the good genes. She's the last one on the right, the main character of this particular page. β¨
π PROPERTIES π
She inherits properties from her parent HTML::Object::DOM::Element (yes, the whole inheritance chain above, all of it, we're not skipping anybody).
π compact
A boolean value indicating that spacing between list items should be reduced. This property reflects the "compact" attribute only β it does not consider the line-height CSS property used for that behavior in modern pages.
Ngl, important caveat:compactis a little bit of a fossil. It's just mirroring the old attribute and is definitely not checking your CSSline-heightlike modern pages do. Don't let her gaslight you π
See also Mozilla documentation https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/compact
π₯ reversed
A boolean value reflecting the "reversed" β and it defines whether the numbering is descending (that is, its value is true) or ascending (false).
So: true = counting down, false = counting up. Simple as. π―
See also Mozilla documentation https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/reversed
β start
A long value reflecting the start and defining the value of the first number of the first element of the list. She also reflects the "start" attribute.
So whatever number you want the list to open on, that's her whole job. π«Ά
See also Mozilla documentation https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/start
π§ type
A string value reflecting the "type" and defining the kind of marker to be used to display. She can have the following values:
'1'meaning that decimal numbers are used: 1, 2, 3, 4, 5, β¦'a'meaning that the lowercase latin alphabet is used: a, b, c, d, e, β¦'A'meaning that the uppercase latin alphabet is used: A, B, C, D, E, β¦'i'meaning that the lowercase latin numerals are used: i, ii, iii, iv, v, β¦'I'meaning that the uppercase latin numerals are used: I, II, III, IV, V, β¦
Case matters here bestie, 'i' and 'I' are not the same vibe β one's lowercase roman numerals and one's uppercase. Same for 'a' vs 'A'. You got this π
See also Mozilla documentation https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/type
π METHODS π
She inherits methods from her parent HTML::Object::DOM::Element. That's it, that's the section β everything else comes from up the chain, no cap.
π AUTHOR π
Jacques Deguest <jack@deguest.jp>
π SEE ALSO π
- Mozilla documentation
https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement - Mozilla documentation on ol element
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol
π 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, that's the whole license, and it slaps. Go forth and redistribute. π«‘
π And that's the page! Little sign-off for you: this one's from perl v5.42.2, dated 2026-02-15. Go build some gorgeous ordered lists, bestie, you absolutely ate. π
β¨πΈ
π¦ 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