HTML::Object::DOM::Space - HTML Object DOM Space Class
use HTML::Object::DOM::Space; my $sp = HTML::Object::DOM::Space->new( value => $some_space ) || die( HTML::Object::DOM::Space->error, "\n" );
v0.2.0
This implements the representation of a space-only chunk of data. This is a divergence from the DOM standard which treats space as text. Thus, 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.
It inherits from HTML::Object::Space and HTML::Object::DOM::CharacterData
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------------+ +--------------------------+ | HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::CharacterData | --> | HTML::Object::DOM::Space | +-----------------------+ +---------------------------+ +-------------------------+ +----------------------------------+ +--------------------------+ | ^ | | v | +-----------------------+ | | HTML::Object::Space | -----------------------------------------------------------------------------------------------------------------+ +-----------------------+
Sets or gets the value of this space node.
Returns an empty list in list context or an empty array reference in scalar context.
Returns an empty list in list context or undef in scalar context.
undef
Returns the value from the parent's getRootNode
getRootNode
Returns false.
Returns true if both nodes are space nodes of equivalent value.
Sets or gets the object value of this space node's parent.
Read-only.
Returns the value of this space node.
Jacques Deguest <jack@deguest.jp>
Mozilla documentation
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.
To install HTML::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Object
CPAN shell
perl -MCPAN -e shell install HTML::Object
For more information on module installation, please visit the detailed CPAN module installation guide.