UNPKG

html5shiv

Version:

The HTML5 Shiv enables use of HTML5 sectioning elements in legacy Internet Explorer and provides basic HTML5 styling for Internet Explorer 6-9, Safari 4.x (and iPhone 3.x), and Firefox 3.x.

28 lines (26 loc) 726 B
<!doctype html> <html> <head> <meta charset="utf-8"> <title>HTML5 Shiv</title> <link rel="stylesheet" href="style.css"> <script src="../src/html5shiv-printshiv.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.js"></script> </head> <body> <div id="time"></div> <section>This sentence is in a green box <mark>with these words highlighted</mark>.</section> <script> function addDom(){ document.createElement('div'); document.createDocumentFragment(); } var time = document.getElementById('time'); var cur = new Date().getTime(); for(var i = 0; i < 10000; i++){ addDom(); } time.innerHTML = new Date().getTime() - cur; </script> <body> </html>