HTML::O...ocument(3)
π NAME π
Okay so the page header tags this as HTML::O...ocument(3) and User Contributed Perl Documentation, and the actual module is HTML::Object::Document β HTML Object Document Class. Slay, we're in the right place π
β¨ SYNOPSIS β¨
use HTML::Object::Document;
my $doc = HTML::Object::Document->new ||
die( HTML::Object::Document->error, "\n" );
π VERSION π
v0.2.0 β that's the version, bestie β¨
πΈ DESCRIPTION πΈ
This module represents an HTML document and is instantiated by HTML::Object. It is the top of the objects hierarchy. Like, main-character energy at the top of the tree π
π¦ INHERITANCE π¦
+-----------------------+ +------------------------+
| HTML::Object::Element | --> | HTML::Object::Document |
+-----------------------+ +------------------------+
π METHODS π
π append π
append inserts a set of element objects or HTML string after the last child of the document.
This method appends a child to a Document. To append to an arbitrary element in the tree, see append in HTML::Object::XQuery.
An HTML::Object::HierarchyRequestError exception is thrown when the element cannot be inserted at the specified point in the hierarchy.
See also Mozilla documentation: <https://developer.mozilla.org/en-US/docs/Web/API/Document/append>
π« as_string π«
Returns the html document as a string, and in its original format except for the parts you modified. So it's giving "preserve the vibe unless you touched it" π
β as_xml β
Returns the document as an xml document, which is kind of an old way to present html document.
π₯ declaration π₯
Sets or gets the document DTD object.
π uri π
Because this is a perl framework, there is no URI associated with this object by default, but you can set one yourself, or it will be set automatically for you when you use parse_url in HTML::Object.
π EVENT & EVENT HANDLERS π
No event or event handlers are implemented for HTML::Object::Document. If you want event handlers, use HTML::Object::DOM objects instead. No cap, that's just how it is π
π«Ά AUTHOR π«Ά
Jacques Deguest <jack@deguest.jp>
π§ SEE ALSO π§
<https://html.spec.whatwg.org/multipage/syntax.html#the-doctype><https://developer.mozilla.org/en-US/docs/Web/HTML/Quirks_Mode_and_Standards_Mode>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.
Catch you later, bestie π«Ά This page comes from perl v5.42.2, dated 2026-02-15, and the footer still whispers HTML::O...ocument(3) π
π¦ 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