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

πŸ“¦ version 0.6.0, in alpine 3.24

🌸 NAME 🌸

HTML::Object::DOM::Space β€” HTML Object DOM Space Class. Bestie, this is the page the header tags as HTML::O...::Space(3), straight from the User Contributed Perl Documentation shelf. πŸ’…

✨ SYNOPSIS ✨

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

πŸŽ€ VERSION πŸŽ€

This one is serving v0.2.0. Short, sweet, iconic. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This class implements the representation of a space-only chunk of data. It is a divergence from the DOM standard, which treats space as text. So any data chunk comprised only of spaces between tags would all be space nodes. 🌈

Spaces includes space, tabulation, carriage return, new line, and any other horizontal and vertical spaces. Literally all the invisible little guys. πŸ‘‘

It inherits from HTML::Object::Space and HTML::Object::DOM::CharacterData. Family tree goes crazy, iykyk. 🧚

πŸ’œ INHERITANCE πŸ’œ

The whole inheritance glow-up, unchanged because diagrams are sacred:

        +-----------------------+     +---------------------------+     +-------------------------+     +----------------------------------+     +--------------------------+
        | HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::CharacterData | --> | HTML::Object::DOM::Space |
        +-----------------------+     +---------------------------+     +-------------------------+     +----------------------------------+     +--------------------------+
          |                                                                                                                                        ^
          |                                                                                                                                        |
          v                                                                                                                                        |
        +-----------------------+                                                                                                                  |
        |  HTML::Object::Space  | -----------------------------------------------------------------------------------------------------------------+
        +-----------------------+

🧸 PROPERTIES 🧸

πŸ’« nodeValue

Sets or gets the value of this space node. Setter AND getter energy, no cap. ✨

πŸ› οΈ METHODS πŸ› οΈ

🌟 getAttributes

Returns an empty list in list context or an empty array reference in scalar context. No attributes here, bestie. πŸŽ€

🌟 getChildNodes

Returns an empty list in list context or an empty array reference in scalar context. Empty child-node lineup, fr fr. πŸ¦‹

🌟 getElementById

Returns an empty list in list context or undef in scalar context. She is not giving element-by-id today. πŸ’…

🌟 getFirstChild

Returns an empty list in list context or undef in scalar context. No first child, periodt. 🌸

🌟 getLastChild

Returns an empty list in list context or undef in scalar context. No last child either. 😭

🌟 getRootNode

Returns the value from the parent's getRootNode. Just passing that root-node vibe up the chain. πŸ”₯

🌟 isAttributeNode

Returns false. Not an attribute node, bestie. πŸ™ˆ

🌟 isCommentNode

Returns false. Not a comment node. πŸ’€

🌟 isElementNode

Returns false. Not an element node. 🌈

🌟 isNamespaceNode

Returns false. Not a namespace node. ⭐

🌟 isPINode

Returns false. Not a PI node. πŸ“

🌟 isProcessingInstructionNode

Returns false. Not a processing-instruction node. 🧚

🌟 isTextNode

Returns false. Even though it is all about space, it is not a text node. Iconic behavior. πŸ‘‘

🌟 isEqualNode

Returns true if both nodes are space nodes of equivalent value. Matching space-node energy only. πŸ’–

🌟 parent

Sets or gets the object value of this space node's parent. Parental supervision, but make it object value. 🫢

🌟 string_value

Read-only. Returns the value of this space node. No setting, just reading. πŸ’œ

🌸 AUTHOR 🌸

Jacques Deguest <jack@deguest.jp> β€” this icon wrote it. πŸ’…

🌈 SEE ALSO 🌈

Mozilla documentation β€” https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Whitespace

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 that’s the whole page, bestie πŸ’– β€” it came from perl v5.42.2, dated 2026-02-15, and the manual tag is HTML::O...::Space(3). 🫢

πŸ“¦ where this page comes from