--- test/html-webhacc/cc.cgi 2007/06/27 14:36:45 1.4
+++ test/html-webhacc/cc.cgi 2007/06/30 08:26:08 1.5
@@ -194,16 +194,72 @@
"\n
+
Tables
+
+
+
+
+];
+
+ my $i = 0;
+ for my $table_el (@{$elements->{table}}) {
+ $i++;
+ print STDOUT qq[
\n];
+
+ my $table = Whatpm::HTMLTable->form_table ($table_el);
+
+ for (@{$table->{column_group}}, @{$table->{column}}, $table->{caption}) {
+ next unless $_;
+ delete $_->{element};
+ }
+
+ for (@{$table->{row_group}}) {
+ next unless $_;
+ next unless $_->{element};
+ $_->{type} = $_->{element}->manakai_local_name;
+ delete $_->{element};
+ }
+
+ for (@{$table->{cell}}) {
+ next unless $_;
+ for (@{$_}) {
+ next unless $_;
+ for (@$_) {
+ $_->{id} = refaddr $_->{element} if defined $_->{element};
+ delete $_->{element};
+ }
+ }
+ }
+
+ print STDOUT '
];
+ }
+
+ print STDOUT qq[
];
+ }
}
## TODO: Show result
@@ -282,10 +338,10 @@
unshift @node, @{$child->child_nodes}, '';
}
} elsif ($nt == $child->DOCUMENT_TYPE_NODE) {
- $r .= qq'