Skip to content

Commit d04dd72

Browse files
author
Anthony Parsons
committed
Add HTML5 hack for IE <= 8 to display correctly
1 parent aac6f72 commit d04dd72

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

html/index.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@
44
<meta charset="UTF-8" />
55
<title>Perl 6 Design Documents</title>
66
<link rel="stylesheet" href="style.css" />
7-
<script language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
8-
<script language="javascript">
9-
<!--
7+
8+
<!--[if lte IE 8]>
9+
<script>
10+
var h5elems = ['header', 'aside', 'footer', 'main', 'section'];
11+
for ( var x = 0; x < h5elems.length; x++ )
12+
document.createElement(h5elems[x]);
13+
</script>
14+
<![endif]-->
15+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
16+
<script>
1017
$(document).ready(function() {
1118
$('#intro-text').toggle();
1219
$('#read-more').click(function() {
1320
$('#intro-text').toggle();
1421
});
1522
});
16-
// --></script>
17-
23+
</script>
1824
</head>
1925

2026
<body>

0 commit comments

Comments
 (0)