comparison Lib/IMPL/DOM/Navigator.pm @ 122:a7efb3117295

Fixed bug in IMPL::DOM::Navigator::selectNodes Fixed bug in IMPL::DOM::Node::selectNodes renamed operator 'type' to 'typeof' in IMPL::Object::Abstract A proper implementation of the IMPL::DOM::Node::nodeProperty and a related changes in the IMPL::DOM::Property module, now the last is very simple.
author wizard
date Tue, 08 Jun 2010 20:12:45 +0400
parents 196bf443b5e1
children 76515373dac0
comparison
equal deleted inserted replaced
121:92c850d0bdb9 122:a7efb3117295
68 } 68 }
69 69
70 sub selectNodes { 70 sub selectNodes {
71 my ($this,@path) = @_; 71 my ($this,@path) = @_;
72 72
73 return internalSelectNodes($this->Current,@path); 73 return $this->Current->selectNodes(@path);
74 }
75
76 sub internalSelectNodes {
77 my $node = shift;
78 my $query = shift;
79
80 if (@_) {
81 return map internalSelectNodes($_,@_), $node->selectNodes($query);
82 } else {
83 return $node->selectNodes($query);
84 }
85 } 74 }
86 75
87 sub internalNavigateNodeSet { 76 sub internalNavigateNodeSet {
88 my ($this,@nodeSet) = @_; 77 my ($this,@nodeSet) = @_;
89 78