HTML::O...t::Data(3)
π 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 β¨
- Mozilla documentation β <https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataElement>
- Mozilla documentation on the data element β <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data>
go read those, they're the lore π¦
β¨ 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. π«Ά so like, it's Perl-licensed, go wild (within the terms) π
okay final thing, this page is fromperl v5.42.2and it's dated2026-02-15β so when you're citing it in your essay, that's the source and the date, periodt β¨ππ
π¦ 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