HTML::O...laration(3)

πŸ“¦ version 0.6.0, in alpine 3.24

🌸 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 🧚

iykyk, the whole module squad is here 🫢

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