Posted By

polly42 on 12/11/10


Tagged

javascript html5


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

kwameboame
thechinnster


Make IE understand html5


 / Published in: JavaScript
 

URL: http://html5doctor.com/how-to-get-html5-working-in-ie-and-firefox-2/

JavaScript file that creates the HTML5 elements for IE8 and below (by Remy Sharp). Just call the file from the head of the html in a conditional comment [if lte IE 8].

  1. (function(){if(!/*@cc_on!@*/0)return;var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav,output,progress,section,time,video".split(',');for(var i=0;i<e.length;i++){document.createElement(e[i])}})()

Report this snippet  

You need to login to post a comment.