NAME
HTML::Object::Collection - HTML Object XQuery Collection Class
SYNOPSIS
use HTML::Object::Collection;
my $col = HTML::Object::Collection->new ||
die( HTML::Object::Collection->error, "\n" );
VERSION
v0.2.0
DESCRIPTION
This module serves as a collection of HTML elements and is used by XQuery when a query is made with a selector or other criteria to group several HTML objects just like jQuery does.
It inherits from HTML::Object::Document and does not do much except for a handful methods.
INHERITANCE
+-----------------------+ +----------------------------+ +--------------------------+
| HTML::Object::Element | --> | HTML::Object::DOM::Element | --> | HTML::Object::Collection |
+-----------------------+ +----------------------------+ +--------------------------+
PROPERTIES
nodeValue
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.
METHODS
as_string
When called, this will return the string representation of the first HTML element object it contains similar to the behaviour of jQuery. However, as an added feature, if this method is called with all
set to 1 or a positive value then, it will return the string representation for all the HTML element objects it holds.
end
Set or get the end element
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.