Skip to content

Instantly share code, notes, and snippets.

@bloodyowl
Forked from 140bytes/LICENSE.txt
Created October 26, 2012 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bloodyowl/3959956 to your computer and use it in GitHub Desktop.
Save bloodyowl/3959956 to your computer and use it in GitHub Desktop.
HTML5forIE
function(a,i){
a="header0footer0section0aside0nav0article0figure0figcaption0hgroup0time".split(0); // array
for(i=10;i--;) document.createElement(a[i]) // and element creation
}
function(a,i){a="header0footer0section0aside0nav0article0figure0figcaption0hgroup0time".split(0);for(i=10;i--;)document.createElement(a[i])}
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Matthias Le Brun http://mlb.li
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
{
"name": "HTML5 for IE",
"description": "Enables HTML5 elements on Internet Explorer",
"keywords": [
"polyfill",
"ie",
"shim",
"html5"
]
}
@shinsenter
Copy link

shinsenter commented Mar 26, 2019

This may be the shortest version, 126 bytes

"header footer section aside nav article figure figcaption hgroup time".replace(/\w+/g,(var d=document).createElement.bind(d))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment