HTML::O...t::Space(3)
β¨ 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 & 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.
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
- 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