browser: avoid exceptional colgroup filter offset
[sheet.git] / browser.plp
index 9a865d4f0ff8a577b20c191af9604b08030c9fa3..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">';
-print '<col>' x 3;
+print '<col span="3">';  # should match first thead row
 printf '<colgroup span="%d">', scalar @{ $versions{$_} } for @browsers;
 print "\n";
 
@@ -192,6 +192,7 @@ sub saytitlecol {
 
        for ($row->{categories}) {
                my $cell = $_ ? lc $_->[0] : '-';
+               $cell =~ s/ api$//;  # trim unessential fluff in 'js api'
                printf '<th title="%s">%s', join(' + ', @$_), $cell;
        }