declare type in HTML style tags
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 11 May 2009 18:47:11 +0000 (18:47 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 11 May 2009 18:49:23 +0000 (18:49 +0000)
Though all browsers default to css, it's not strictly valid.

index.plp
nethack.plp
readline.plp
vim.plp
vimperator.plp

index 1927f13b0fabcc76ec03cca27f88cd42d95f6b42..8bf233c0696c53a45e8ca65bd82610b6db41a30c 100644 (file)
--- a/index.plp
+++ b/index.plp
@@ -15,7 +15,7 @@ $header{content_type} = "text/html; charset=utf-8";
 <title>vi cheat sheet</title>
 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
 <link rel="stylesheet" type="text/css" media="all" href="base.css">
-<style>
+<style type="text/css">
        ul {
                text-align: center;
                margin-bottom: 1ex;
index 9b8606babc5499f0782521ac1d232e683da5899e..3d76e0a01e731465a079266afd16c4721ab39217 100644 (file)
@@ -28,8 +28,8 @@ $header{content_type} = "text/html; charset=$sign{charset}";
        ) for keys %styles;
 
        our $showkeys = exists $get{keys} && $get{keys} ne '0';
-       print "\n<style> .no {visibility:hidden} </style>" unless $showkeys;
-       print "\n<style> .no, .alias {opacity:.5} </style>"
+       print "\n".'<style type="text/css"> .no {visibility:hidden} </style>' unless $showkeys;
+       print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
                if $showkeys and $get{keys} eq 'ghost';
 :>
 <script type="text/javascript" src="/keys.js"></script>
index 06c8e30fb98a291c49728e2f19fddcf18f68fcf6..f9a29b18f38cc74cce8dad0f6fdf2091554ce992 100644 (file)
@@ -28,8 +28,8 @@ $header{content_type} = "text/html; charset=$sign{charset}";
        ) for keys %styles;
 
        our $showkeys = exists $get{keys} && $get{keys} ne '0';
-       print "\n<style> .no {visibility:hidden} </style>" unless $showkeys;
-       print "\n<style> .no, .alias {opacity:.5} </style>"
+       print "\n".'<style type="text/css"> .no {visibility:hidden} </style>' unless $showkeys;
+       print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
                if $showkeys and $get{keys} eq 'ghost';
 :>
 <script type="text/javascript" src="/keys.js"></script>
diff --git a/vim.plp b/vim.plp
index e357b73d2626205a1cb1a3a33f4bbf39f5b03b15..c84bb38cafcbc872825282653256248cd7a1f23b 100644 (file)
--- a/vim.plp
+++ b/vim.plp
@@ -28,8 +28,8 @@ $header{content_type} = "text/html; charset=$sign{charset}";
        ) for keys %styles;
 
        our $showkeys = exists $get{keys} && $get{keys} ne '0';
-       print "\n<style> .no {visibility:hidden} </style>" unless $showkeys;
-       print "\n<style> .no, .alias {opacity:.5} </style>"
+       print "\n".'<style type="text/css"> .no {visibility:hidden} </style>' unless $showkeys;
+       print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
                if $showkeys and $get{keys} eq 'ghost';
 :>
 <script type="text/javascript" src="/keys.js"></script>
index 55c635f680e28b7da085c372018bcfb6d34cfb9b..84d910632e456a803aeeaef640de74de54a69156 100644 (file)
@@ -28,8 +28,8 @@ $header{content_type} = "text/html; charset=$sign{charset}";
        ) for keys %styles;
 
        our $showkeys = exists $get{keys} && $get{keys} ne '0';
-       print "\n<style> .no {visibility:hidden} </style>" unless $showkeys;
-       print "\n<style> .no, .alias {opacity:.5} </style>"
+       print "\n".'<style type="text/css"> .no {visibility:hidden} </style>' unless $showkeys;
+       print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
                if $showkeys and $get{keys} eq 'ghost';
 :>
 <script type="text/javascript" src="/keys.js"></script>