So schließen Sie einen spezifischen Tagnamen einer JavaScript -Abfrage -Suche aus

var elems = document.querySelectorAll("body > *:not()");
//tag will go inside the not function like so:
var elems = document.querySelectorAll("body > *:not(img)");
CoderDude64