Skip to content

Commit

Permalink
[#1788] added html5shiv, and conditionally included in layout_base.ht…
Browse files Browse the repository at this point in the history
…ml for IE < 9, to properly show HTML5 section elements which corrupted the layout on those browsers.

It must be included in <head> tag because it is said to be required to come before the <body> tag: http://code.google.com/p/html5shiv/
  • Loading branch information
zydio committed Feb 24, 2012
1 parent 7af8c36 commit 2f4d754
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/public/scripts/vendor/html5shiv/html5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions ckan/templates/layout_base.html
Expand Up @@ -37,6 +37,9 @@
<!--[if lt IE 8]>
<link rel="stylesheet" href="${h.url_for_static('/css/blueprint/ie.css')}" type="text/css" media="screen, projection">
<![endif]-->
<!--[if lt IE 9]>
<script type="text/javascript" src="${h.url_for_static('/scripts/vendor/html5shiv/html5.js')}"></script>
<![endif]-->
<link rel="stylesheet" href="${h.url_for_static('/css/style.css?v=2')}" />

<py:if test="defined('optional_head')">
Expand Down

0 comments on commit 2f4d754

Please sign in to comment.