HTML::Object::DOM::Root - HTML Object
use HTML::Object::DOM::Root; my $this = HTML::Object::DOM::Root->new || die( HTML::Object::DOM::Root->error, "\n" );
v0.2.0
This module implements a Root in DOM. It inherits from HTML::Object::Root and HTML::Object::DOM::Node
+---------------------------+ +-------------------------+ +--------------------+ +-------------------------+ | HTML::Object::Element | --> | HTML::Object::Document | --> | HTML::Object::Root | --> | HTML::Object::DOM::Root | +---------------------------+ +-------------------------+ +--------------------+ +-------------------------+ | ^ | | v | +---------------------------+ +-------------------------+ | | HTML::Object::EventTarget | --> | HTML::Object::DOM::Node | ---------------------------------+ +---------------------------+ +-------------------------+
Provided with another object and this returns true if the other object is a HTML::Object::Root object or false otherwise.
Returns an empty list in list context, or an empty array reference in scalar context.
Returns the "root" element.
Returns an empty list in list context, or undef in scalar context.
undef
Returns itself.
Returns false.
Returns true.
Sets or gets a root node, which should be a HTML::Object::DOM::Element::HTML object.
Jacques Deguest <jack@deguest.jp>
HTML::Object::DOM::Element::HTML
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.