--- test/html-webhacc/cc.cgi 2008/02/10 02:05:30 1.31 +++ test/html-webhacc/cc.cgi 2008/02/10 02:30:14 1.32 @@ -147,6 +147,8 @@ sub check_and_print ($$) { my ($input, $result) = @_; + $input->{id_prefix} = ''; + #$input->{nested} = 1/0; print_http_header_section ($input, $result); @@ -178,15 +180,16 @@ } if (defined $doc or defined $el) { - print_structure_dump_dom_section ($doc, $el); - my $elements = print_structure_error_dom_section ($doc, $el, $result); - print_table_section ($elements->{table}) if @{$elements->{table}}; - print_id_section ($elements->{id}) if keys %{$elements->{id}}; - print_term_section ($elements->{term}) if keys %{$elements->{term}}; - print_class_section ($elements->{class}) if keys %{$elements->{class}}; + print_structure_dump_dom_section ($input, $doc, $el); + my $elements = print_structure_error_dom_section + ($input, $doc, $el, $result); + print_table_section ($input, $elements->{table}) if @{$elements->{table}}; + print_id_section ($input, $elements->{id}) if keys %{$elements->{id}}; + print_term_section ($input, $elements->{term}) if keys %{$elements->{term}}; + print_class_section ($input, $elements->{class}) if keys %{$elements->{class}}; } elsif (defined $manifest) { - print_structure_dump_manifest_section ($manifest); - print_structure_error_manifest_section ($manifest, $result); + print_structure_dump_manifest_section ($input, $manifest); + print_structure_error_manifest_section ($input, $manifest, $result); } } # check_and_print @@ -196,8 +199,8 @@ defined $input->{header_status_text} or @{$input->{header_field}}; - push @nav, ['#source-header' => 'HTTP Header']; - print STDOUT qq[
Note: Due to the limitation of the @@ -231,11 +234,11 @@ require Whatpm::HTML; print STDOUT qq[ -
] . htescape ($attr->[0]) . '
= '; ## ISSUE: case?
+ $r .= qq[] . htescape ($attr->[0]) . '
= '; ## ISSUE: case?
$r .= '' . htescape ($attr->[1]) . '
@{[htescape $id]}
@{[htescape $class]}
Input Error: @{[htescape ($input->{error_status_text})]}