NAME

HTML::Object::DOM::Space - HTML Object DOM Space Class

SYNOPSIS

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

VERSION

v0.2.0

DESCRIPTION

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

INHERITANCE

+-----------------------+     +---------------------------+     +-------------------------+     +----------------------------------+     +--------------------------+
| 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.

METHODS

getAttributes

Returns an empty list in list context or an empty array reference in scalar context.

getChildNodes

Returns an empty list in list context or an empty array reference in scalar context.

getElementById

Returns an empty list in list context or undef in scalar context.

getFirstChild

Returns an empty list in list context or undef in scalar context.

getLastChild

Returns an empty list in list context or undef in scalar context.

getRootNode

Returns the value from the parent's getRootNode

isAttributeNode

Returns false.

isCommentNode

Returns false.

isElementNode

Returns false.

isNamespaceNode

Returns false.

isPINode

Returns false.

isProcessingInstructionNode

Returns false.

isTextNode

Returns false.

isEqualNode

Returns true if both nodes are space nodes of equivalent value.

parent

Sets or gets the object value of this space node's parent.

string_value

Read-only.

Returns the value of this space node.

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Mozilla documentation

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.