HTML::Object::Text(3)
π HTML::Object::Text β HTML Object π
okay so bestie, this is the HTML::Object::Text manual page from the User Contributed Perl Documentation collection. it's giving text-node main character energy, and we're gonna read it together like a group chat π«Άβ¨
πΈ NAME πΈ
HTML::Object::Text β HTML Object. that's the name, no cap π
β¨ SYNOPSIS β¨
use HTML::Object::Text;
my $txt = HTML::Object::Text->new ||
die( HTML::Object::Text->error, "\n" );
like, make your text object or perish, basically πβ¨
π VERSION π
v0.2.0 β write it down, bestie. periodt. π
π DESCRIPTION π
This module represents a text. It inherits from HTML::Object::Element.
that's the whole description, and honestly? iconic. simple. slay. π
π¦ INHERITANCE π¦
the family tree is literally this:
+-----------------------+ +--------------------+
| HTML::Object::Element | --> | HTML::Object::Text |
+-----------------------+ +--------------------+
π PROPERTIES π
π nodeValue π
This returns or sets the value of the current node.
For document, element or collection, this returns undef; for attribute, text or comment, this returns the objct value.
more info: https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue
π METHODS π
yes bestie, nodeValue comes back for round two in here π we love a recurring character.
β¨ as_string β¨
Returns the original value or the value assigned with value.
π as_xml π
This is an alias for as_string β same energy, different name. π«
π¦ isEqualNode π¦
Returns a boolean value which indicates whether or not two elements are of the same type and all their defining data points match.
Two elements are equal when they have the same type, defining characteristics (this would be their ID, number of children, and so forth), its attributes match, and so on. The specific set of data points that must match varies depending on the types of the elements.
more info: https://developer.mozilla.org/en-US/docs/Web/API/Node/isEqualNode
πΈ lineage πΈ
Returns an array object of all the text element's ancestors.
π nodeValue π
This returns or sets the value of the current element.
more info: https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue
π₯ set_checksum π₯
Read-only method.
This returns the md5 checksum for the current value.
β value β
Returns the current value as a scalar object.
π AUTHOR π
Jacques Deguest <jack@deguest.jp> β shoutout to the icon who made this π«Ά
β SEE ALSO β
the doctype, the quirks, the whole extended universe:
https://html.spec.whatwg.org/multipage/syntax.html#the-doctypehttps://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode
and the whole squad of modules, in order, because we don't skip anyone:
HTML::ObjectHTML::Object::AttributeHTML::Object::BooleanHTML::Object::ClosingHTML::Object::CollectionHTML::Object::CommentHTML::Object::DeclarationHTML::Object::DocumentHTML::Object::ElementHTML::Object::ExceptionHTML::Object::LiteralHTML::Object::NumberHTML::Object::RootHTML::Object::SpaceHTML::Object::TextHTML::Object::XQuery
π 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.
okay bestie, that's the whole HTML::Object::Text(3) page π this footer energy is brought to you by perl v5.42.2 and dated 2026-02-15 β slay, go forth and text-node responsibly π«Άβ¨
π¦ 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