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

πŸ“¦ version 0.6.0, in alpine 3.24

πŸ’– HTML::O...t::Data(3) β€” the whole manual, bestie πŸ’–

okay so real talk, this is the HTML::O...t::Data(3) page from the Perl docs, and it's literally the manual for HTML::Object::DOM::Element::Data, aka the class that handles <data> elements. it's short, it's sweet, and we're gonna get through it together. pull up a chair πŸŽ€


✨ NAME ✨

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


✨ SYNOPSIS ✨

okay so here's how you actually summon one of these bad boys:

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

that's the whole vibe. new it up, and if it flops, die with the error and a newline like a responsible icon 🫢


✨ VERSION ✨

it's at v0.2.0 β€” smol version number, big main character energy ⭐


✨ DESCRIPTION ✨

so this interface gives you special properties for manipulating <data> elements β€” and yes, that's "beyond the regular HTML::Object::Element interface" which it also has available to it by inheritance. so like, it's the base model plus the data-specific perks. lowkey a glow-up πŸ’…


✨ INHERITANCE ✨

the family tree, and honestly it's giving royal lineage πŸ‘‘

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

like, it goes all the way back. respect the ancestors πŸ¦‹


✨ PROPERTIES ✨

it inherits properties from its parent HTML::Object::DOM::Element. slay, inherited ✨

value

this one is a string reflecting the value HTML attribute β€” i.e. it contains a machine-readable form of the element's value. so it's the robot-readable version of what the element says πŸ€–

see also the Mozilla documentation at <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataElement/value> β€” they explain it too, iykyk πŸ’œ


✨ METHODS ✨

it inherits methods from its parent HTML::Object::DOM::Element. that's the whole section, bestie. no extra methods hiding in here 🌸


✨ AUTHOR ✨

Jacques Deguest <jack@deguest.jp> β€” thank him, he wrote it πŸ’–


✨ SEE ALSO ✨

go read those, they're the lore πŸ¦‹


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. 🫢 so like, it's Perl-licensed, go wild (within the terms) πŸ’…


okay final thing, this page is from perl v5.42.2 and it's dated 2026-02-15 β€” so when you're citing it in your essay, that's the source and the date, periodt βœ¨πŸŽ€πŸ’–
πŸ“¦ where this page comes from