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 258999e..8b08b86 100644 (file)
@@ -107,7 +107,7 @@ $canihas ||= {
 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";
 
index 6c37fc9..8c33f8d 100644 (file)
@@ -38,7 +38,7 @@ function filtercols(table, match, action) {
                                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];