Commits

Tim Brody committed 984c99d

Fixed NodeList::item() calling a 1-indexed array reference (should be 0-indexed according to DOM spec.)

Comments (0)

Files changed (1)

lib/XML/LibXML/NodeList.pm

     $self->[$pos - 1];
 }
 
-*item = \&get_node;
+sub item {
+	my $self = CORE::shift;
+	my ($pos) = @_;
+	$self->[$pos];
+}
 
 sub get_nodelist {
     my $self = CORE::shift;