Normalmente, eu pego no valor de retorno toString (). Funciona em elementos DOM acessados de forma diferente:
var a = document.querySelector('a');
var img = document.createElement('img');
document.body.innerHTML += '<div id="newthing"></div>';
var div = document.getElementById('newthing');
Object.prototype.toString.call(a); // "[object HTMLAnchorElement]"
Object.prototype.toString.call(img); // "[object HTMLImageElement]"
Object.prototype.toString.call(div); // "[object HTMLDivElement]"
Então, a peça relevante:
Object.prototype.toString.call(...).split(' ')[1].slice(0, -1);
Funciona no Chrome, FF, Opera, Edge, IE9 + (no IE mais antigo retorna "[object Object]").
element.nodeName.match(/\bTBODY\b/i)
ouelement.nodeName.toLowerCase() == 'tbody'
etc.