HTML::O...::Space(3)
πΈ 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 & 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 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
- 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