comparison Lib/IMPL/Web/TT/Form.pm @ 144:b56ebc31bf18

Empty nodes no more created while transforming a post request to the DOM document minor speed improvements to the object CTOR caching Added support for a secure processing (and 'laundering' ) a CGI parameters Many minor fixes
author wizard
date Tue, 13 Jul 2010 02:05:38 +0400
parents c5bc900eefd3
children bd10093bb122
comparison
equal deleted inserted replaced
143:d9dd3500ead3 144:b56ebc31bf18
59 my $node = $this->data ? $this->data->selectSingleNode(@path) : undef; 59 my $node = $this->data ? $this->data->selectSingleNode(@path) : undef;
60 60
61 my @errors; 61 my @errors;
62 62
63 if ($node) { 63 if ($node) {
64 @errors = grep { ( $_->Node || $_->Parent) == $node } @{$this->errors}; 64 @errors = grep { ($_->Node || $_->Parent) == $node } @{$this->errors};
65 } else {
66 @errors = grep $_->Schema == $sourceSchema, @{$this->errors};
65 } 67 }
66 68
67 return { 69 return {
68 schema => $schema, 70 schema => $schema,
69 sourceSchema => $sourceSchema, 71 sourceSchema => $sourceSchema,