Re: Hey HTML5 doctype?
Reply #9 –
My 2c: stuff Modernizer. If they can't even spell, I'm not going to trust their code.
We probably wont be using all that many of the new tags, because we simply wont need them. So we can just do something like this if we are worried about IE8:
<script><!-- // --><![CDATA[';
if ($context['browser']['is_lte_ie9'])
echo '
document.createElement("article"); document.createElement("aside");
document.createElement("details"); document.createElement("figcaption");
document.createElement("figure"); document.createElement("footer");
document.createElement("header"); document.createElement("hgroup");
document.createElement("nav"); document.createElement("section");';
Rough example with ends tags missing. You get that.