/ Published in: JavaScript
Here we have simple javascript HTML5 support.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//Faux html5 support for unsupportive browsers. H5="abbr article aside audio bb bdi canvas datagrid datalist details dialog eventsource embed figure footer figcaption header hgroup keygen mark menu meter nav output progress rp rt ruby summary section source track time title video wbr".split(" ");for(var i=0;i<H5.length;i++)document.createElement(H5[i]);