HTML::Object::Comment - HTML Object Comment Element Class
use HTML::Object::Comment; my $this = HTML::Object::Comment->new || die( HTML::Object::Comment->error, "\n" );
v0.2.0
This module represents an HTML comment
+-----------------------+ +-----------------------+ | HTML::Object::Element | --> | HTML::Object::Comment | +-----------------------+ +-----------------------+
This returns or sets the value of the current node.
For document, element or collection, this returns undef and for attribute, text or comment, this returns the objct value.
undef
See for more information
Returns the HTML comment as a string.
Returns the comment as an XML string., which is almost the same format as with "as_string"
Set or get the string used as a close sequence.
Returns a boolean value which indicates whether or not two elements are of the same type and all their defining data points match.
Two elements are equal when they have the same type, defining characteristics (this would be their ID, number of children, and so forth), its attributes match, and so on. The specific set of data points that must match varies depending on the types of the elements.
This returns or sets the value of the current element.
Set or get the string used as an open sequence.
Read-only.
Get the element md5 checksum for the current value.
Set or get the comment inner value, i.e. the text within, as a scalar object
Jacques Deguest <jack@deguest.jp>
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 (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.
To install HTML::Object, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Object
CPAN shell
perl -MCPAN -e shell install HTML::Object
For more information on module installation, please visit the detailed CPAN module installation guide.