NAME

HTML::Object::Closing - HTML Object Closing Tag Class

SYNOPSIS

use HTML::Object::Closing;
my $close = HTML::Object::Closing->new(
    tag => 'div',
);
# My opening div tag object
$elem->close_tag( $close );

VERSION

v0.2.0

DESCRIPTION

This module represents the end of a tag for tags that are not empty. Thos objects are in the dom by necessity, but are not used directly. They are always attached to the object of another HTML element

This module inherits from HTML::Object::Element

INHERITANCE

+-----------------------+     +-----------------------+
| HTML::Object::Element | --> | HTML::Object::Closing |
+-----------------------+     +-----------------------+

CONSTRUCTOR

new

Creates and returns a new tag closing object.

Creates a new HTML::Object::Closing objects. It may also take an hash like arguments, that also are method of the same name.

METHODS

On top of the methods inherited from HTML::Object::Element, this module implements also the following methods:

as_string

Returns a string version of this closing tag. Unless it was modified, it will return the version exactly the same as when it was parsed from some HTML data, if any.

as_xml

This is an alias for "as_string"

checksum

Returns an empty string.

set_checksum

Does absolutely nothing and is here to prevent the inherited method from being triggered.

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

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.