--- test/html-webhacc/cc.cgi 2007/07/17 13:52:54 1.13 +++ test/html-webhacc/cc.cgi 2007/07/17 14:28:20 1.14 @@ -31,13 +31,11 @@ } binmode STDOUT, ':utf8'; + $| = 1; require Message::DOM::DOMImplementation; my $dom = Message::DOM::DOMImplementation->new; - my $input = get_input_document ($http, $dom); - my $inner_html_element = $http->parameter ('e'); - load_text_catalog ('en'); ## TODO: conneg my @nav; @@ -52,7 +50,13 @@

Web Document Conformance Checker (beta)

+]; + $| = 0; + my $input = get_input_document ($http, $dom); + my $inner_html_element = $http->parameter ('e'); + + print qq[
Request URI
@@ -212,6 +216,7 @@ if (@{$elements->{table}}) { require JSON; + push @nav, ['#tables' => 'Tables']; print STDOUT qq[

Tables

@@ -266,6 +271,7 @@ } if (keys %{$elements->{id}}) { + push @nav, ['#identifiers' => 'IDs']; print STDOUT qq[

Identifiers

@@ -282,6 +288,7 @@ } if (keys %{$elements->{term}}) { + push @nav, ['#terms' => 'Terms']; print STDOUT qq[

Terms

@@ -296,6 +303,23 @@ } print STDOUT qq[
]; } + + if (keys %{$elements->{class}}) { + push @nav, ['#classes' => 'Classes']; + print STDOUT qq[ +
+

Classes

+ +
+]; + for my $class (sort {$a cmp $b} keys %{$elements->{class}}) { + print STDOUT qq[
@{[htescape $class]}
]; + for (@{$elements->{class}->{$class}}) { + print STDOUT qq[
].get_node_link ($_).qq[
]; + } + } + print STDOUT qq[
]; + } } ## TODO: Show result @@ -692,4 +716,4 @@ =cut -## $Date: 2007/07/17 13:52:54 $ +## $Date: 2007/07/17 14:28:20 $