HTML::Object::Root(3)
π NAME π
okay so bestie, you're on the HTML::Object::Root(3) page β manual name folded in near the top like a lil name tag π·οΈβ¨. The module is HTML::Object::Root, and its summary is literally HTML Object.
β¨ SYNOPSIS β¨
use HTML::Object::Root;
my $root = HTML::Object::Root->new ||
die( HTML::Object::Root->error, "\n" );
π VERSION π
v0.2.0 β that's the version, no cap.
π¦ DESCRIPTION π¦
This module represents a "Root" element. It inherits from HTML::Object::Document.
π INHERITANCE π
+-----------------------+ +------------------------+ +--------------------+
| HTML::Object::Element | --> | HTML::Object::Document | --> | HTML::Object::Root |
+-----------------------+ +------------------------+ +--------------------+
π PROPERTIES π
nodeValue
Returns or sets the value of the current node.
For document, element or collection, this returns undef; for attribute, text or comment, this returns the object value.
See for more information https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue.
π₯ 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> β author icon behavior π.
π§ SEE ALSO π§
HTML::ObjectHTML::Object::AttributeHTML::Object::BooleanHTML::Object::ClosingHTML::Object::CollectionHTML::Object::CommentHTML::Object::DeclarationHTML::Object::DocumentHTML::Object::ElementHTML::Object::ExceptionHTML::Object::LiteralHTML::Object::NumberHTML::Object::RootHTML::Object::SpaceHTML::Object::TextHTML::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.
okay bye bestie π β cute sign-off tea β: perl v5.42.2, dated 2026-02-15, and the manual is HTML::Object::Root(3). slay and goodbye π
β¨
π¦ 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