--- test/html-webhacc/WebHACC/Result.pm 2008/08/30 05:32:51 1.16
+++ test/html-webhacc/WebHACC/Result.pm 2008/09/11 09:13:57 1.19
@@ -177,7 +177,8 @@
$out->text (substr $opt{value}, $opt{pos_start},
$opt{pos_end} - $opt{pos_start} + 1);
$out->end_tag ('mark');
- $out->text (substr $opt{value}, $opt{pos_end} + 1);
+ $out->text (substr $opt{value}, $opt{pos_end} + 1)
+ if $opt{pos_end} < length $opt{value};
$out->end_tag ('code');
} elsif ($opt{value_mark_end}) {
$out->start_tag ('code');
@@ -234,7 +235,8 @@
## Error message
my $error_type_text = $opt{type};
$out->nl_text ($error_type_text, node => $opt{node}, text => $opt{text},
- value => $opt{value});
+ value => $opt{value}, char => $opt{char},
+ octets => $opt{octets});
## Link to a long description
@@ -319,8 +321,9 @@
target => 'parse-errors', score_base => 10,
parent_status => $maindoc_status},
{label => 'Char L.', status => $self->{layers}->{charset},
- score_base => 10,
+ target => 'parse-errors', score_base => 10,
parent_status => $maindoc_status},
+ ## TODO: char semantics layer
{label => 'Syntax L.', status => $self->{layers}->{syntax},
target => 'parse-errors', score_base => 20,
parent_status => $maindoc_status},