From: Mischa POSLAWSKY Date: Tue, 7 Dec 2010 22:38:59 +0000 (+0100) Subject: browser: avoid exceptional colgroup filter offset X-Git-Tag: v1.4~40 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/1d2faf9cbd58546ac4a44f085fe1910971882f7f browser: avoid exceptional colgroup filter offset --- diff --git a/browser.plp b/browser.plp index 258999e..8b08b86 100644 --- a/browser.plp +++ b/browser.plp @@ -107,7 +107,7 @@ $canihas ||= { my $scorediv = (max(map { ref $_ eq 'HASH' && sum(values %$_) } values %$canihas) // 1) / 100; print ''; -print '' x 3; +print ''; # should match first thead row printf '', scalar @{ $versions{$_} } for @browsers; print "\n"; diff --git a/searchlocal.js b/searchlocal.js index 6c37fc9..8c33f8d 100644 --- a/searchlocal.js +++ b/searchlocal.js @@ -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];