diff options
| author | 2021-02-03 19:17:50 -0500 | |
|---|---|---|
| committer | 2021-02-03 19:17:50 -0500 | |
| commit | 475d074fd74425efbe783fad08f97f2df0c4909f (patch) | |
| tree | 2acdae53999b3c74b716efa4edb5b40311fa356a /npm_assets/node_modules/html5shiv/test/perf.1.html | |
| parent | cd502d52787f666fff3254d7d7e7578930c813c2 (diff) | |
| parent | 3a0d66f07b112b6d2bdc2b57bbf717a89a351ce6 (diff) | |
Update upstream source from tag 'upstream/8.1.2'
Update to upstream version '8.1.2'
with Debian dir e5e966a9e6010ef70618dc9a61558fa4db35aceb
Diffstat (limited to 'npm_assets/node_modules/html5shiv/test/perf.1.html')
| -rw-r--r-- | npm_assets/node_modules/html5shiv/test/perf.1.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/npm_assets/node_modules/html5shiv/test/perf.1.html b/npm_assets/node_modules/html5shiv/test/perf.1.html new file mode 100644 index 0000000..62890ef --- /dev/null +++ b/npm_assets/node_modules/html5shiv/test/perf.1.html @@ -0,0 +1,41 @@ +<!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(){ + var div, frag, fragDiv, divFrag, divFragDiv; + div = document.createElement('div'); + div.innerHTML = '<section>This native javascript sentence is in a green box <mark>with these words highlighted</mark>?</section>'; + + frag = document.createDocumentFragment(); + frag.appendChild(div); + div.innerHTML += '<section>This native javascript sentence is also in a green box <mark>with these words highlighted</mark>?</section>'; + document.body.appendChild(frag); + + frag = document.createDocumentFragment(); + fragDiv = frag.appendChild(document.createElement('div')); + fragDiv.innerHTML = '<section>This native javascript sentence is in a green box <mark>with these words highlighted</mark>?</section>'; + document.body.appendChild(fragDiv); + + jQuery(document.body).append('<section>This jQuery 1.6.4 sentence is in a green box <mark>with these words highlighted</mark>?</section><section>This jQuery 1.6.4 sentence is in a green box <mark>with these words highlighted</mark>?</section>'); + } + + var time = document.getElementById('time'); + var cur = new Date().getTime(); + + for(var i = 0; i < 1000; i++){ + addDom(); + } + time.innerHTML = new Date().getTime() - cur; + </script> + <body> +</html>
\ No newline at end of file |
