The manakai project

Web::DOM::HTMLAllCollection

DOM HTMLAllCollection object

DESCRIPTION

The Web::DOM::HTMLAllCollection class implements the DOM HTMLAllCollection interface.

Note that the document.all attribute is obsolete. You MUST NOT use it.

METHODS

Following methods are available:

$node = $col->[$index]
$node = $col->{$index}
$node = $col->item ($index)

Return the node in the collection, specified by its index. [DOM] [HTML] [DOMPERL]

Use of the item method is discouraged as it doesn't support Perl-ish ways to access items, such as negative indexing, while $col->[-1] works as intended.

$obj = $col->{$key}
$obj = $col->item ($key)
$obj = $col->named_item ($key)

Return the node whose ID or the name attribute is equal to the argument, if any, or undef. If there are multiple elements with same ID or name, another Web::DOM::HTMLCollection containing them is returned instead. [DOM] [HTML] [DOMPERL]

SPECIFICATIONS

DOM

DOM Standard <https://dom.spec.whatwg.org/#interface-htmlcollection>.

HTML

HTML Standard <https://www.whatwg.org/specs/web-apps/current-work/#htmlallcollection>.

DOMPERL

manakai's DOM Perl Binding <https://suika.suikawiki.org/~wakaba/wiki/sw/n/manakai%27s%20DOM%20Perl%20Binding>.

SEE ALSO

Web::DOM::HTMLCollection.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2012-2016 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.