html5 and old browsers

by prettyscripts on 2011-08-25 15:21

javascripthtml5

html5 introduces new tags that's not recognized by older browsers.

to fix it, add the following javascripts:

Code:

<script>
document.createElement("article");
document.createElement("footer");
document.createElement("header");
document.createElement("hgroup");
document.createElement("nav");
</script>

alternatively, include a html5 enabling script. the scripts is hosted on google codes and can be hotlinked:

Code:

<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->