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

πŸ“¦ version 0.6.0, in alpine 3.24

πŸ’– HTML::O...t::DList(3) β€” the DL List glow-up

okay bestie, so this is HTML::Object::DOM::Element::DList, from the User Contributed Perl Documentation, and it's literally the class that handles definition list (<dl>) elements. she's giving specialist energy, and honestly? we stan. ✨


πŸ¦‹ NAME

HTML::Object::DOM::Element::DList β€” HTML Object DOM DL List Class. that's it, that's the name, no cap.


🌸 SYNOPSIS

like, use her and then make one, okay?

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

that || die(...) is not decorative, babe β€” if new flops you print the error and exit. respect the guard clause. πŸ’…


πŸŽ€ VERSION

v0.2.0

periodt. that's the version.


✨ DESCRIPTION

so this interface gives you special properties for manipulating definition list (<dl>) elements β€” and these are on top of everything the regular HTML::Object::Element interface already gives you, since it inherits all of that anyway. lowkey the whole point: <dl> gets its own little toolkit. 🫢


πŸ‘‘ INHERITANCE

she has ancestors, and here's the whole family tree in all its wide, unbothered glory:

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

read it left to right, the arrows are the inheritance chain, DList is the main character at the end. πŸ”₯


🌈 PROPERTIES

she inherits her properties from her parent, HTML::Object::DOM::Element. so everything mom has, she has.

πŸ’œ compact

it's a boolean value that says whether the spacing between list items should be reduced. true = squish those list items together, false = let them breathe. that's the whole vibe check.

also, see the Mozilla documentation for it: <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDListElement/compact> ⭐


🧚 METHODS

she inherits her methods from her parent, HTML::Object::DOM::Element too. nothing extra up in here, she's just her mom's kid and she's thriving. πŸ’€


πŸ“ AUTHOR

Jacques Deguest <jack@deguest.jp> β€” thank you for the lore, king. πŸ™Œ


πŸ” SEE ALSO

go read them, iykyk. πŸ“š


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.

okay so legally she's Perl-licensed, do with that what you will, but be normal about it. 😭


ngl this page is docked at perl v5.42.2, dated 2026-02-15, and those are the receipts from the footer. mwah, bye bestie! πŸ’–πŸŽ€πŸ¦‹
πŸ“¦ where this page comes from