Skip to content

Instantly share code, notes, and snippets.

@jessycormier
Created July 26, 2019 14:45
Show Gist options
  • Save jessycormier/640c429338d7928e28eff89cd10e29a5 to your computer and use it in GitHub Desktop.
Save jessycormier/640c429338d7928e28eff89cd10e29a5 to your computer and use it in GitHub Desktop.
Enable HTML5 elements for <IE9
<!--[if lt IE 9]>
<script>
//Enable HTML5 elements for <IE9
'abbr article aside audio bdi canvas data datalist details dialog \
figcaption figure footer header hgroup main mark meter nav output \
progress section summary template time video'.replace(/\w+/g,function(n){document.createElement(n)});
</script>
<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment