comparison Lib/IMPL/DOM/Node.pm @ 113:7b14e0122b79

Updated PostToDOM transformation added selectSingleNode method to IMPL::DOM::Node Implemented FormWrapper in the Web::Application::ControllerUnit
author wizard
date Fri, 21 May 2010 02:38:11 +0400
parents ddf0f037d460
children 1722ca51537c
comparison
equal deleted inserted replaced
112:0ed8e2541b1c 113:7b14e0122b79
198 while (my $query = shift @$path) { 198 while (my $query = shift @$path) {
199 @set = map $_->selectNodesAxis($query), @set; 199 @set = map $_->selectNodesAxis($query), @set;
200 } 200 }
201 201
202 return wantarray ? @set : \@set; 202 return wantarray ? @set : \@set;
203 }
204
205 sub selectSingleNode {
206 my $this = shift;
207 my @result = $this->selectNodes(@_);
208 return $result[0];
203 } 209 }
204 210
205 sub selectNodesRef { 211 sub selectNodesRef {
206 my $this = shift; 212 my $this = shift;
207 213