browser: avoid exceptional colgroup filter offset
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 7 Dec 2010 22:38:59 +0000 (23:38 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 15 Dec 2010 21:40:44 +0000 (22:40 +0100)
browser.plp
searchlocal.js

index 258999e834364ce4cf4b4a07278fa1ff07d38783..8b08b86a26a69fdc11e46d81015e1f95de2e4cb6 100644 (file)
@@ -107,7 +107,7 @@ $canihas ||= {
 my $scorediv = (max(map { ref $_ eq 'HASH' && sum(values %$_) } values %$canihas) // 1) / 100;
 
 print '<table class="mapped">';
 my $scorediv = (max(map { ref $_ eq 'HASH' && sum(values %$_) } values %$canihas) // 1) / 100;
 
 print '<table class="mapped">';
-print '<col>' x 3;
+print '<col span="3">';  # should match first thead row
 printf '<colgroup span="%d">', scalar @{ $versions{$_} } for @browsers;
 print "\n";
 
 printf '<colgroup span="%d">', scalar @{ $versions{$_} } for @browsers;
 print "\n";
 
index 6c37fc901362c7f2fbb5b9a4c3d2138e8cb729a6..8c33f8d0f0c5bb1451d34af494dd9f8e82c90c8b 100644 (file)
@@ -38,7 +38,7 @@ function filtercols(table, match, action) {
                                if (match(cell)) {
                                        if (!matchloc) matchloc = [loc];
                                        matchloc[1] = loc + cell.colSpan;
                                if (match(cell)) {
                                        if (!matchloc) matchloc = [loc];
                                        matchloc[1] = loc + cell.colSpan;
-                                       filtercell(table.children.item(x+2), true, action); // colgroup
+                                       filtercell(table.children.item(x), true, action); // colgroup
                                }
                        }
                        var keep = matchloc && loc >= matchloc[0] && loc < matchloc[1];
                                }
                        }
                        var keep = matchloc && loc >= matchloc[0] && loc < matchloc[1];