Html({
title => 'browser compatibility cheat sheet',
- version => '1.4',
+ version => '1.5',
description => [
"Compatibility table of new web features (HTML5, CSS3, SVG, Javascript)",
"comparing support and usage share for all popular browser versions.",
$span->[-1] eq $lastver ? () : '(development)',
),
!defined $lastver && ' class="ex"',
- showversions($lastver),
+ showversions($lastver // $span->[0]),
);
}
}
sub paddedver {
# normalised version number comparable as string (cmp)
- shift =~ /(?:.*-|^)(\d*)(.*)/;
+ $_[0] =~ m/(?:.*-|^)(\d*)(.*)/;
# matched (major)(.minor) of last value in range (a-B)
- return sprintf('%02d', $1 || 99) . $2;
+ return sprintf('%02d', length $1 ? $1 : 99) . $2;
}
sub showversions {
</div>
<script type="text/javascript" src="/searchlocal.js"></script>
-<script type="text/javascript"> prependsearch(document.getElementById('intro')) </script>
+<script type="text/javascript"><!--
+ prependsearch(document.getElementById('intro'));
+//--></script>