/[suikacvs]/test/html-webhacc/WebHACC/Result.pm
Suika

Diff of /test/html-webhacc/WebHACC/Result.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by wakaba, Fri Aug 15 05:53:23 2008 UTC revision 1.14 by wakaba, Sat Aug 16 07:42:20 2008 UTC
# Line 81  sub add_error ($%) { Line 81  sub add_error ($%) {
81      $error_layer = 'syntax'; ## NOTE: Unknown - an error of the implementation      $error_layer = 'syntax'; ## NOTE: Unknown - an error of the implementation
82    }    }
83    
   my $error_type_text = $opt{type};  
   
84    my $class = qq[level-$error_level layer-$error_layer];    my $class = qq[level-$error_level layer-$error_layer];
85    
86    ## Line & column numbers (prepare values)    ## Line & column numbers (prepare values)
# Line 187  sub add_error ($%) { Line 185  sub add_error ($%) {
185        } elsif (defined $opt{input}->{request_uri}) {        } elsif (defined $opt{input}->{request_uri}) {
186          $out->url ($opt{input}->{request_uri});          $out->url ($opt{input}->{request_uri});
187          $has_location = 1;          $has_location = 1;
188        } elsif (defined $opt{input}->{uri}) {        } elsif (defined $opt{input}->url) {
189          $out->url ($opt{input}->{uri});          $out->url ($opt{input}->url);
190          $has_location = 1;          $has_location = 1;
191        }        }
192      }      }
# Line 205  sub add_error ($%) { Line 203  sub add_error ($%) {
203    $out->text (': ');    $out->text (': ');
204        
205    ## Error message    ## Error message
206    $out->nl_text ($error_type_text, node => $opt{node}, text => $opt{text});    my $error_type_text = $opt{type};
207      $out->nl_text ($error_type_text, node => $opt{node}, text => $opt{text},
208    ## Additional error description                   value => $opt{value});
   if (defined $opt{text}) {  
     $out->html (' (<q>');  
     $out->text ($opt{text});  
     $out->html ('</q>)');  
   }  
209        
210    ## Link to a long description    ## Link to a long description
211    
# Line 292  sub generate_result_section ($) { Line 285  sub generate_result_section ($) {
285         target => 'transfer-errors', score_base => 20,         target => 'transfer-errors', score_base => 20,
286         parent_status => $maindoc_status},         parent_status => $maindoc_status},
287        {label => 'Encode L.', status => $self->{layers}->{encode},        {label => 'Encode L.', status => $self->{layers}->{encode},
288         score_base => 10,         target => 'parse-errors', score_base => 10,
289         parent_status => $maindoc_status},         parent_status => $maindoc_status},
290        {label => 'Char L.', status => $self->{layers}->{charset},        {label => 'Char L.', status => $self->{layers}->{charset},
291         score_base => 10,         score_base => 10,

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.14

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24