old browser HTML5 element support

Benchmark created by Binyamin on


Description

Enable HTML5 elements on old browsers.

Preparation HTML

<header></header>
<nav></nav>
<article></article>
<section></section>
<details></details>
<time></time>
<aside></aside>
<address></address>
<footer></footer>
<abbr></abbr>

Test runner

Ready to run.

Testing in
TestOps/sec
test with for()
(function() {
 if (! /*@cc_on!@*/ 0) return;
 var e = ['header', 'nav', 'article', 'section', 'details', 'time', 'aside', 'address', 'footer', 'abbr'];
 for (var i = e.length - 1; i >= 0; i--) {
  document.createElement(e[i]);
 }
})();
ready
test with while()
(function() {
 if (! /*@cc_on!@*/ 0) return;
 var e = 'header,nav,article,section,details,time,aside,address,footer,abbr'.split(','),
     i = 0,
     length = e.length;
 while (i < length) {
  document.createElement(e[i++])
 }
})();
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Binyamin on