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
itemmethod 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
nameattribute is equal to the argument, if any, orundef. If there are multiple elements with same ID orname, 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
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.