:>.
</p>
-<div id="browser">
<:
my $caniuse = do 'browser-support.inc.pl' or die $! || $@;
$_->{verrelease} = {
) for @{ $versions{$browser} };
}
print '<td>' x 1;
-print "</thead>\n";
+say '</thead>';
+say '<tfoot>', $header, '</tfoot>';
sub featurescore {
# relative amount of support for given feature
print '<td>', int featurescore($caniuse->{data}->{$id}->{stats}) / $maxscore * 100;
}
+say '<tbody>';
for my $id (sort {
featurescore($caniuse->{data}->{$b}->{stats})
<=> featurescore($caniuse->{data}->{$a}->{stats})
sayusagecol($id);
say '</tr>';
}
-print '<tfoot>', $header;
-print '</table>';
+say '</tbody>';
+say '</table>';
sub formathtml {
my $ref = defined wantarray ? [@_] : \@_;
return join('‒', @span);
}
-:></div>
-
+:>
<hr>
<div class="legend">
</div>
</div>
-<script src="/searchlocal.js"></script>
-<script> prependsearch(document.getElementById('intro')) </script>
+<script type="text/javascript" src="/searchlocal.js"></script>
+<script type="text/javascript"> prependsearch(document.getElementById('intro')) </script>