HTML::Object::Text(3)

πŸ“¦ version 0.6.0, in alpine 3.24

πŸ’– 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:

and the whole squad of modules, in order, because we don't skip anyone:

  • HTML::Object
  • HTML::Object::Attribute
  • HTML::Object::Boolean
  • HTML::Object::Closing
  • HTML::Object::Collection
  • HTML::Object::Comment
  • HTML::Object::Declaration
  • HTML::Object::Document
  • HTML::Object::Element
  • HTML::Object::Exception
  • HTML::Object::Literal
  • HTML::Object::Number
  • HTML::Object::Root
  • HTML::Object::Space
  • HTML::Object::Text
  • HTML::Object::XQuery

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