The manakai project

Web::DOM::CSSRuleList

The DOM CSSRuleList object

DESCRIPTION

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

METHODS

Following methods are available:

$rule = $rule_list->[$index]
$rule = $rule_list->item ($index)

Return the rule in the list, specified by its index. [CSSOM] [DOMPERL]

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

$number = @$rule_list
$number = $rule_list->length

Return the number of the rules in the list. [CSSOM] [DOMPERL]

$arrayref = $rule_list->to_a

Return the new static array reference containing the rules in the list. [DOMPERL]

($rule1, $rule2, ...) = $rule_list->to_list
($rule1, $rule2, ...) = @$rule_list

Return the list of the rules contained in the list. [DOMPERL]

The object supports Perl standard read-only operations for array references, e.g. exists $rule_list->[4]. [DOMPERL]

SPECIFICATIONS

CSSOM

CSSOM <http://dev.w3.org/csswg/cssom/#cssrulelist>.

DOMPERL

manakai's DOM Perl Binding <http://suika.suikawiki.org/~wakaba/wiki/sw/n/manakai%27s%20DOM%20Perl%20Binding#anchor-86>.

SEE ALSO

Web::DOM::CSSRule.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

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

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