NAME

HTML::Object::Root - HTML Object

SYNOPSIS

use HTML::Object::Root;
my $root = HTML::Object::Root->new || 
    die( HTML::Object::Root->error, "\n" );

VERSION

v0.2.0

DESCRIPTION

This module represent a Root element. It inherits fron HTML::Object::Document

INHERITANCE

+-----------------------+     +------------------------+     +--------------------+
| HTML::Object::Element | --> | HTML::Object::Document | --> | HTML::Object::Root |
+-----------------------+     +------------------------+     +--------------------+

PROPERTIES

nodeValue

This returns or sets the value of the current node.

For document, element or collection, this returns undef and for attribute, text or comment, this returns the objct value.

See for more information

METHODS

cmp

Provided with an element and this returns true if this element is a Root element, or false otherwise.

getAttributes

Returns a new empty array object

getChildNodes

Returns the value returned by "root"

getName

Returns undef if scalar context and an empty list in list context.

getNextSibling

Returns undef if scalar context and an empty list in list context.

getParentNode

Returns undef if scalar context and an empty list in list context.

getPreviousSibling

Returns undef if scalar context and an empty list in list context.

getRootNode

Returns the current object since there is no higher element than itself.

is_inside

Returns 0, i.e. false.

isDocumentNode

Returns 1, i.e. true.

lineage

Returns a new array object with the current object as its sole element.

root

Returns the element object representing the actual root element.

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

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.