TPAC: Let there be HTML5
authorDan Scott <dan@coffeecode.net>
Mon, 18 Feb 2013 22:44:28 +0000 (17:44 -0500)
committerBen Shum <bshum@biblio.org>
Thu, 21 Feb 2013 22:56:54 +0000 (17:56 -0500)
Stop living the lie that we're pretending to be XHTML Transitional and
embrace HTML5. And save a whole bunch of bytes right off the bat!

Also, use a valid language/locale identifier--we need hyphens instead of
underscores.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/templates/opac/parts/base.tt2

index c7175b6..f1a5ee0 100644 (file)
@@ -1,7 +1,7 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns='http://www.w3.org/1999/xhtml' lang='[% ctx.locale %]' xml:lang='[% ctx.locale %]'>
+<!DOCTYPE html>
+<html lang='[% ctx.locale.replace('_', '-') %]'>
     <head>
-        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+        <meta charset="utf-8" />
         [% IF ctx.refresh %]
         <meta http-equiv="refresh" content="[% ctx.refresh %]">
         [% ELSIF ctx.authtime %]