1 |
#!/usr/bin/perl |
#!/usr/bin/perl |
2 |
|
# -d:DProf |
3 |
use strict; |
use strict; |
4 |
|
|
5 |
use lib qw[/home/httpd/html/www/markup/html/whatpm |
use lib qw[/home/httpd/html/www/markup/html/whatpm |
34 |
$out->html_header; |
$out->html_header; |
35 |
$out->unset_flush; |
$out->unset_flush; |
36 |
|
|
37 |
|
$out->generate_input_section ($http); |
38 |
|
|
39 |
|
my $u = $http->get_parameter ('uri'); |
40 |
|
my $s = $http->get_parameter ('s'); |
41 |
|
if ((not defined $u or not length $u) and |
42 |
|
(not defined $s or not length $s)) { |
43 |
|
exit; |
44 |
|
} |
45 |
|
|
46 |
require WebHACC::Result; |
require WebHACC::Result; |
47 |
my $result = WebHACC::Result->new; |
my $result = WebHACC::Result->new; |
|
$result->{conforming_min} = 1; |
|
|
$result->{conforming_max} = 1; |
|
48 |
$result->output ($out); |
$result->output ($out); |
49 |
|
|
50 |
require WebHACC::Input; |
require WebHACC::Input; |
52 |
|
|
53 |
check_and_print ($input => $result => $out); |
check_and_print ($input => $result => $out); |
54 |
|
|
|
$result->generate_result_section; |
|
|
|
|
55 |
$out->nav_list; |
$out->nav_list; |
56 |
|
|
57 |
exit; |
exit; |
67 |
$input->generate_transfer_sections ($result); |
$input->generate_transfer_sections ($result); |
68 |
|
|
69 |
unless (defined $input->{s}) { |
unless (defined $input->{s}) { |
70 |
$result->{conforming_min} = 0; |
## NOTE: This is an error of the implementation. |
71 |
|
$result->layer_uncertain ('transfer'); |
72 |
|
$result->generate_result_section; |
73 |
|
|
74 |
|
$out->input ($original_input); |
75 |
return; |
return; |
76 |
} |
} |
77 |
|
|
79 |
'text/cache-manifest' => 'WebHACC::Language::CacheManifest', |
'text/cache-manifest' => 'WebHACC::Language::CacheManifest', |
80 |
'text/css' => 'WebHACC::Language::CSS', |
'text/css' => 'WebHACC::Language::CSS', |
81 |
'text/html' => 'WebHACC::Language::HTML', |
'text/html' => 'WebHACC::Language::HTML', |
82 |
|
'text/x-h2h' => 'WebHACC::Language::H2H', |
83 |
'text/x-webidl' => 'WebHACC::Language::WebIDL', |
'text/x-webidl' => 'WebHACC::Language::WebIDL', |
84 |
|
|
85 |
'text/xml' => 'WebHACC::Language::XML', |
'text/xml' => 'WebHACC::Language::XML', |
124 |
unless defined $subinput->{base_uri}; |
unless defined $subinput->{base_uri}; |
125 |
$subinput->{parent_input} = $input; |
$subinput->{parent_input} = $input; |
126 |
|
|
127 |
$subinput->start_section ($result); |
my $subresult = WebHACC::Result->new; |
128 |
check_and_print ($subinput => $result => $out); |
$subresult->output ($out); |
129 |
$subinput->end_section ($result); |
$subresult->parent_result ($result); |
130 |
|
|
131 |
|
$subinput->start_section ($subresult); |
132 |
|
check_and_print ($subinput => $subresult => $out); |
133 |
|
$subinput->end_section ($subresult); |
134 |
} |
} |
135 |
|
|
136 |
|
$result->generate_result_section; |
137 |
|
|
138 |
$out->input ($original_input); |
$out->input ($original_input); |
139 |
} # check_and_print |
} # check_and_print |
140 |
|
|