<header> vs <div id="header"> (v3)

Revision 3 of this benchmark created on


Description

In a bid to better understand HTML5 elements, I want to know whether a <header> element behaves like a <div id="header"> element when it comes to selector performance.

Preparation HTML

<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<header>
 <div id="header"><div>
</header>

Test runner

Ready to run.

Testing in
TestOps/sec
Select <header> element
$('header');
ready
Select <div id="header"> element
$('#header');
ready

Revisions

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