HTML::O...laration(3)
πΈ NAME πΈ
okay so this page is the HTML::O...laration(3) manual from User Contributed Perl Documentation, bestie β manual name folded in near the top like a little name tag π«Ά. The module is HTML::Object::Declaration, and its official one-liner is literally HTML Object. slay.
π¦ SYNOPSIS π¦
like, here's how you summon it:
use HTML::Object::Declaration;
my $this = HTML::Object::Declaration->new || die( HTML::Object::Declaration->error, "\n" );
obsessed with how short that is β¨
π VERSION π
v0.2.0 β that's the version, periodt. π
π DESCRIPTION π
This module represents a document declaration element. main character energy, ngl, lowkey the whole point, fr fr.
π INHERITANCE π
the family tree is iconic, highkey it's giving structure, and it's literally this:
+-----------------------+ +---------------------------+
| HTML::Object::Element | --> | HTML::Object::Declaration |
+-----------------------+ +---------------------------+
π PROPERTIES π
vibe check on the properties, bestie:
π internalSubset
Read-only. It returns an empty string object.
π name
Read-only. A DOMString, eg "html" for <!DOCTYPE HTML>.
π notations
Read-only. A NamedNodeMap with notations declared in the DTD.
π publicId
Read-only. A DOMString, eg "-//W3C//DTD HTML 4.01//EN", empty string for HTML5.
For example, with a doctype such as:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
or
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
π systemId
Read-only. A DOMString, eg "http://www.w3.org/TR/html4/strict.dtd", empty string for HTML5.
π₯ METHODS π₯
π« after
This method is listed here for standard compliance, but actually does nothing. fr fr, it's just sitting there looking pretty. Normally, in JavaScript, it would insert a set of Node or DOMString objects in the children list of the DocumentType's parent, just after the DocumentType object.
π« as_string
Returns a string representation of this element.
π« as_xml
Returns a xml representation of this element. This is actually an alias for as_string.
π« before
This method is listed here for standard compliance, but actually does nothing. same compliance icon energy, zero action, no cap. Normally, in JavaScript, it would insert a set of Node or DOMString objects in the children list of the DocumentType's parent, just before the DocumentType object.
π« checksum
Returns an empty string.
π« set_checksum
Returns nothing. not me expecting more β it's literally nothing.
π 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><https://developer.mozilla.org/en-US/docs/Web/API/DocumentType>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
iykyk, the whole module squad is here π«Ά
π 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 that's the whole page, bestie π«Ά the source/version line is perl v5.42.2, dated 2026-02-15, and the manual tag is HTML::O...laration(3). bye π
β¨
π¦ 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