HTML::O...t::UList(3)

πŸ“¦ version 0.6.0, in alpine 3.24

πŸ’… HTML::Object::DOM::Element::UList β€” the whole vibe

okay so bestie, you're looking at HTML::O...t::UList(3), and yes that's a User Contributed Perl Documentation page, we love a community-sourced moment 🫢. It's the manpage for HTML::Object::DOM::Element::UList, and honestly? It's short, it's sweet, it's giving "I do one thing and I do it well." Let's get into it ✨


🌸 NAME

HTML::Object::DOM::Element::UList β€” the HTML Object DOM UList Class. that's it, that's the name, no notes πŸ’…


πŸŽ€ SYNOPSIS

okay so here's how you actually summon one of these bad boys. copy it exactly, no cap:

use HTML::Object::DOM::Element::UList;
my $ul = HTML::Object::DOM::Element::UList->new ||
    die( HTML::Object::DOM::Element::UList->error, "\n" );

the || die(...) part is your safety net β€” if the constructor flops, it hands you the error and bails with a newline. iconic defensive coding behavior πŸ”₯


⭐ VERSION

v0.2.0

yup, that's the version. screenshot it, frame it, whatever πŸ’–


πŸ¦‹ DESCRIPTION

so what is this thing? This interface gives you special properties β€” like, beyond the ones already defined on the regular HTML::Object::DOM::Element interface (which it also gets by inheritance, because nepotism is real and honestly we respect it) β€” for manipulating unordered list elements. i.e. your <ul>s. your bullet points. your little dots. main character energy fr fr πŸ‘‘


🌈 INHERITANCE

here's the family tree and yes it's a long one, look at all these ancestors:

+-----------------------+     +---------------------------+     +-------------------------+     +----------------------------+     +-----------------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::Element | --> | HTML::Object::DOM::Element::UList |
+-----------------------+     +---------------------------+     +-------------------------+     +----------------------------+     +-----------------------------------+

so it goes HTML::Object::Element β†’ HTML::Object::EventTarget β†’ HTML::Object::DOM::Node β†’ HTML::Object::DOM::Element β†’ HTML::Object::DOM::Element::UList. a whole lineage, we stan a well-documented bloodline 🧚


πŸ’œ PROPERTIES

it inherits properties from its parent HTML::Object::DOM::Element β€” like, all of them, that's the whole deal 🫢

πŸ“ compact

it's a boolean value indicating that the spacing between list items should be reduced. so like, squish the list. tighter. cozier.

but β€” and this is the lowkey important part β€” this property reflects the compact HTML attribute only. it does not consider the line-height CSS property that modern pages actually use to achieve that behavior. so don't come for it when your CSS line-height does nothing here, that's not its job, it never claimed that πŸ’€

See also Mozilla documentation β€” https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/compact

🌸 type

it's a string value reflecting the HTML attribute that represents the type and defines the kind of marker used to display. sounds simple right? plot twist: the values are browser dependent and have never been standardized. so like... good luck, ymmv, it's chaos out here πŸ™ˆ

See also Mozilla documentation β€” https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/type


✨ METHODS

it inherits methods from its parent HTML::Object::DOM::Element. that's the whole section. short king behavior, we love to see it πŸ‘‘


πŸŽ€ AUTHOR

Jacques Deguest <jack@deguest.jp> β€” thank you for your service, sir, the ul community salutes you πŸ«‘πŸ’–


πŸ”₯ SEE ALSO

go read them, they're giving reference material, iykyk πŸ“š


Copyright(c) 2022 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.

so basically: free software, same terms as Perl itself, go off, just don't be weird about it πŸ’…


okay that's the whole page bestie, you're officially an expert on HTML::Object::DOM::Element::UList 🌟

this was perl v5.42.2, dated 2026-02-15, from the HTML::O...t::UList(3) page β€” mwah, bye, love u, go write some lists πŸ’–πŸŽ€πŸŒˆ
πŸ“¦ where this page comes from