HTML::Object::Closing - HTML Object Closing Tag Class
use HTML::Object::Closing; my $close = HTML::Object::Closing->new( tag => 'div', ); # My opening div tag object $elem->close_tag( $close );
v0.2.0
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
+-----------------------+ +-----------------------+ | HTML::Object::Element | --> | HTML::Object::Closing | +-----------------------+ +-----------------------+
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.
HTML::Object::Closing
On top of the methods inherited from HTML::Object::Element, this module implements also the following methods:
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.
This is an alias for "as_string"
Returns an empty string.
Does absolutely nothing and is here to prevent the inherited method from being triggered.
Jacques Deguest <jack@deguest.jp>
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.