--- test/html-webhacc/cc.cgi 2007/07/16 10:55:11 1.11 +++ test/html-webhacc/cc.cgi 2007/07/17 13:52:54 1.13 @@ -15,7 +15,9 @@ $s =~ s//>/g; $s =~ s/"/"/g; - $s =~ s!([\x00-\x09\x0B-\x1F\x7F-\x80])!sprintf 'U+%04X', ord $1!ge; + $s =~ s{([\x00-\x09\x0B-\x1F\x7F-\xA0\x{FEFF}\x{FFFC}-\x{FFFF}])}{ + sprintf 'U+%04X', ord $1; + }ge; return $s; } # htescape @@ -28,6 +30,8 @@ exit; } + binmode STDOUT, ':utf8'; + require Message::DOM::DOMImplementation; my $dom = Message::DOM::DOMImplementation->new; @@ -46,7 +50,8 @@ -

Web Document Conformance Checker (beta)

+

Web Document Conformance Checker +(beta)

@@ -223,7 +228,9 @@ $i++; print STDOUT qq[

] . get_node_link ($table_el) . q[

]; - + + ## TODO: Make |ContentChecker| return |form_table| result + ## so that this script don't have to run the algorithm twice. my $table = Whatpm::HTMLTable->form_table ($table_el); for (@{$table->{column_group}}, @{$table->{column}}, $table->{caption}) { @@ -258,6 +265,22 @@ print STDOUT qq[
]; } + if (keys %{$elements->{id}}) { + print STDOUT qq[ +
+

Identifiers

+ +
+]; + for my $id (sort {$a cmp $b} keys %{$elements->{id}}) { + print STDOUT qq[
@{[htescape $id]}
]; + for (@{$elements->{id}->{$id}}) { + print STDOUT qq[
].get_node_link ($_).qq[
]; + } + } + print STDOUT qq[
]; + } + if (keys %{$elements->{term}}) { print STDOUT qq[
@@ -669,4 +692,4 @@ =cut -## $Date: 2007/07/16 10:55:11 $ +## $Date: 2007/07/17 13:52:54 $