12345678910111213141516171819202122232425262728 |
- <!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>
|