HTML::Object::Root(3)

πŸ“¦ version 0.6.0, in alpine 3.24

πŸ’– 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::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 (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