HTML::O...Comment(3)
π NAME π
okay bestie, welcome to the HTML::O...Comment(3) manual page! This module is HTML::Object::DOM::Comment β HTML Object DOM Comment Class. Periodt. β¨
β¨ SYNOPSIS β¨
use HTML::Object::DOM::Comment;
my $this = HTML::Object::DOM::Comment->new( value => $some_comment ) ||
die( HTML::Object::DOM::Comment->error, "\n" );
π VERSION π
v0.2.0
π¦ DESCRIPTION π¦
The Comment interface represents textual notations within markup β it's generally not visually shown, but bestie, those comments are still available to be read in the source view. π
Comments are represented in HTML and XML as content between <!-- and -->. In XML, like inside SVG or MathML markup, the character sequence -- cannot be used within a comment. β οΈ
It inherits from HTML::Object::Comment and HTML::Object::DOM::CharacterData.
π INHERITANCE π
the family tree is giving legacy DOM energy, and honestly it ate:
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------------+ +----------------------------+
| HTML::Object::Element | --> | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | --> | HTML::Object::DOM::CharacterData | --> | HTML::Object::DOM::Comment |
+-----------------------+ +---------------------------+ +-------------------------+ +----------------------------------+ +----------------------------+
| ^
| |
v |
+-----------------------+ |
| HTML::Object::Comment | -----------------------------------------------------------------------------------------------------------------+
+-----------------------+
π PROPERTIES π
π nodeValue π
Sets or gets the text value for this element.
π₯ METHODS π₯
getAttributes
Returns an empty list in list context, or an empty array reference in scalar context. no cap, that's the whole deal. π
getChildNodes
Returns an empty list in list context, or an empty array reference in scalar context.
getElementById
Returns an empty list in list context, or undef in scalar context.
getFirstChild
Returns an empty list in list context, or undef in scalar context.
getLastChild
Returns an empty list in list context, or undef in scalar context.
getParentNode
Returns the parent node, if any.
getRootNode
Returns the root node.
getValue
Returns the text value of this comment, i.e. the text between <!-- and -->.
isAttributeNode
Returns false.
isCommentNode
Returns true.
isElementNode
Returns false.
isEqualNode
Provided with another element object, and this returns true if both comment element are the same, or false otherwise.
isNamespaceNode
Returns false.
isPINode
Returns false.
isProcessingInstructionNode
Returns false.
isTextNode
Returns false.
string_value
Returns the content of the comment as a string.
toString
Returns the content of the comment as a string.
π«Ά AUTHOR π«Ά
Jacques Deguest <jack@deguest.jp>
π SEE ALSO π
Mozilla documentation: https://developer.mozilla.org/en-US/docs/Web/API/Comment
π 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.
β¨ cute little sign-off, bestie: this page comes fromperl v5.42.2, dated2026-02-15, with User Contributed Perl Documentation energy forHTML::O...Comment(3). mwah π
π¦ 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