Mercurial > pub > Impl
diff 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 |
line wrap: on
line diff
--- a/Lib/IMPL/DOM/Node.pm Tue May 18 17:59:31 2010 +0400 +++ b/Lib/IMPL/DOM/Node.pm Fri May 21 02:38:11 2010 +0400 @@ -202,6 +202,12 @@ return wantarray ? @set : \@set; } +sub selectSingleNode { + my $this = shift; + my @result = $this->selectNodes(@_); + return $result[0]; +} + sub selectNodesRef { my $this = shift;