Is there a way to retrieve the element type? I'm interested in applying the style of a class to HTML5 elements without using the class attribute.
<!DOCTYPE>
<html>
<head>
<title>My page</title>
</head>
<body>
<header>
Hello World
</header>
<section>
Another object
</section>
</body>
<!-- jQuery if necessary -->
<script>
$("body>*").each(function(){
alert($(this).elementType());
// Would display "header" and "section"
});
</script>
</html>