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

πŸ“¦ version 0.6.0, in alpine 3.24

✨ HTML::O...t::Space ✨

Ok so bestie, buckle in, because we're talking about HTML::Object::Space (perl doc vibes, user contributed, you know the drill) πŸ’…


🌸 NAME

HTML::Object::Space β€” HTML Object. That's it, that's the name. Short, sweet, iconic.


πŸŽ€ SYNOPSIS

use HTML::Object::Space;
my $sp = HTML::Object::Space->new ||
    die( HTML::Object::Space->error, "\n" );

That's literally the whole thing. new it, or die with whatever HTML::Object::Space->error hands you plus a newline. No cap, that's the pattern. 🫢


⭐ VERSION

v0.2.0

πŸ¦‹ DESCRIPTION

This module represents one or more spaces β€” like, the actual whitespace. It's the little guy that captures the spaces between HTML elements. Somebody has to do it and honestly? It ate. ✨


πŸ‘‘ INHERITANCE

The family tree, and it is giving lineage:

+-----------------------+     +---------------------+
| HTML::Object::Element | --> | HTML::Object::Space |
+-----------------------+     +---------------------+

So HTML::Object::Element is the parent, HTML::Object::Space is the main character offspring. Periodt.


πŸ’– PROPERTIES

nodeValue

This returns or sets the value of the current node.

And the rules, bestie, listen: for document, element or collection, this returns undef, and for attribute, text or comment, this returns the object value. That's the whole vibe check.

Wanna know more? See https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue πŸ”₯


🧚 METHODS

as_string

Returns the space value enclosed. Literally just the space, all wrapped up. 🎁

as_xml

This is an alias for as_string. Same energy, different name. iykyk.

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. So like, it depends, but it's precise about it. πŸ’€

See for more information https://developer.mozilla.org/en-US/docs/Web/API/Node/isEqualNode

nodeValue

This returns or sets the value of the current element.

See for more information https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue

set_checksum

Read-only method. Do not come for her, she is not taking input today. πŸ™ˆ

This returns the md5 checksum for the current value.

value

Returns the current value as a scalar object. Slay. πŸ’…


🌈 AUTHOR

Jacques Deguest <jack@deguest.jp>


πŸ”₯ SEE ALSO

The whole friend group, no one left out:

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.


And that's the whole page, bestie 🫢 β€” generated by perl v5.42.2, dated 2026-02-15, so you know this doc is fresh-ish. Go forth and space responsibly πŸ’œ

πŸ“¦ where this page comes from