define charset first, before title
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 11 May 2009 18:52:56 +0000 (18:52 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 11 May 2009 19:04:09 +0000 (19:04 +0000)
Name the used encoding as soon as possible.  This may actually be
mandatory in HTML5, but makes more sense in any case (except in
practise, where browsers use either the HTTP header or support meta
tags at any time).

Fix some invalid meta values (missing mime type).

cc.plp
charset.plp
digraphs.plp
index.plp
nethack.plp
readline.plp
unicode.plp
vim.plp

diff --git a/cc.plp b/cc.plp
index 57a8d9138d37e4d34bee86f0b4e969d2559b8633..584884d74f43cbc9465d3b7dc249d08ad5b0a8bd 100644 (file)
--- a/cc.plp
+++ b/cc.plp
@@ -13,8 +13,8 @@ $header{content_type} = 'text/html; charset=utf-8';
 <html>
 
 <head>
 <html>
 
 <head>
+<meta http-equiv="content-type" content="<:= $header{content_type} :>">
 <title>country code cheat sheet</title>
 <title>country code cheat sheet</title>
-<meta http-equiv="content-type" content="utf-8">
 <link rel="stylesheet" type="text/css" media="all" href="/base.css">
 </head>
 
 <link rel="stylesheet" type="text/css" media="all" href="/base.css">
 </head>
 
index bce918b698955bd75229f9ff3077dde3aaf4b9a7..a3e845da8f9c6afa6fec4e8dde7ba572d2de0fed 100644 (file)
@@ -13,8 +13,8 @@ $header{content_type} = 'text/html; charset=utf-8';
 <html>
 
 <head>
 <html>
 
 <head>
+<meta http-equiv="content-type" content="<:= $header{content_type} :>">
 <title>charset cheat sheet</title>
 <title>charset cheat sheet</title>
-<meta http-equiv="content-type" content="utf-8">
 <link rel="stylesheet" type="text/css" media="all" href="/base.css">
 </head>
 
 <link rel="stylesheet" type="text/css" media="all" href="/base.css">
 </head>
 
index fbe8a5de1de34b46bea1956af3899e9c2dc95f83..487b59f2f9cef2ec385665a4ac734bf494cca11e 100644 (file)
@@ -14,8 +14,8 @@ $header{content_type} = 'text/html; charset=utf-8';
 <html>
 
 <head>
 <html>
 
 <head>
+<meta http-equiv="content-type" content="<:= $header{content_type} :>">
 <title>digraph cheat sheet</title>
 <title>digraph cheat sheet</title>
-<meta http-equiv="content-type" content="utf-8">
 <link rel="stylesheet" type="text/css" media="all" href="/base.css"><:
        my %styles = map {$_ => $_} qw(dark circus mono red terse);
        our $style = exists $get{style} && $styles{$get{style}} || 'light';
 <link rel="stylesheet" type="text/css" media="all" href="/base.css"><:
        my %styles = map {$_ => $_} qw(dark circus mono red terse);
        our $style = exists $get{style} && $styles{$get{style}} || 'light';
index 8bf233c0696c53a45e8ca65bd82610b6db41a30c..5abd93c64e933e1d2184f546980134b378b52518 100644 (file)
--- a/index.plp
+++ b/index.plp
@@ -12,8 +12,8 @@ $header{content_type} = "text/html; charset=utf-8";
 <html>
 
 <head>
 <html>
 
 <head>
-<title>vi cheat sheet</title>
 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
+<title>vi cheat sheet</title>
 <link rel="stylesheet" type="text/css" media="all" href="base.css">
 <style type="text/css">
        ul {
 <link rel="stylesheet" type="text/css" media="all" href="base.css">
 <style type="text/css">
        ul {
index 3d76e0a01e731465a079266afd16c4721ab39217..fe20c52729e0f775216c659cabf0f595b99d2701 100644 (file)
@@ -16,8 +16,8 @@ $header{content_type} = "text/html; charset=$sign{charset}";
 <html>
 
 <head>
 <html>
 
 <head>
-<title>nethack cheat sheet</title>
 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
+<title>nethack cheat sheet</title>
 <link rel="stylesheet" type="text/css" media="all" href="base.css">
 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
 <link rel="stylesheet" type="text/css" media="all" href="base.css">
 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
index f9a29b18f38cc74cce8dad0f6fdf2091554ce992..6fc99f543c12f65faf4c7d5710bf91f8a8c46280 100644 (file)
@@ -16,8 +16,8 @@ $header{content_type} = "text/html; charset=$sign{charset}";
 <html>
 
 <head>
 <html>
 
 <head>
-<title>readline cheat sheet</title>
 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
+<title>readline cheat sheet</title>
 <link rel="stylesheet" type="text/css" media="all" href="base.css">
 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
 <link rel="stylesheet" type="text/css" media="all" href="base.css">
 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
index eeea6757b06f3dbb807e7b6f5cd725d9fc85bb12..b55e7715fa2e838d065b60fc01f4eacac77e6e4e 100644 (file)
@@ -14,8 +14,8 @@ $header{content_type} = 'text/html; charset=utf-8';
 <html>
 
 <head>
 <html>
 
 <head>
-<title>digraph cheat sheet</title>
 <meta http-equiv="content-type" content="utf-8">
 <meta http-equiv="content-type" content="utf-8">
+<title>digraph cheat sheet</title>
 <link rel="stylesheet" type="text/css" media="all" href="/base.css"><:
        my %styles = map {$_ => $_} qw(dark circus mono red terse);
        our $style = exists $get{style} && $styles{$get{style}} || 'light';
 <link rel="stylesheet" type="text/css" media="all" href="/base.css"><:
        my %styles = map {$_ => $_} qw(dark circus mono red terse);
        our $style = exists $get{style} && $styles{$get{style}} || 'light';
diff --git a/vim.plp b/vim.plp
index c84bb38cafcbc872825282653256248cd7a1f23b..a14793fae4cc0079665a60189d8e95279339cac6 100644 (file)
--- a/vim.plp
+++ b/vim.plp
@@ -16,8 +16,8 @@ $header{content_type} = "text/html; charset=$sign{charset}";
 <html>
 
 <head>
 <html>
 
 <head>
-<title>vi cheat sheet</title>
 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
+<title>vi cheat sheet</title>
 <link rel="stylesheet" type="text/css" media="all" href="base.css">
 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
 <link rel="stylesheet" type="text/css" media="all" href="base.css">
 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><: