I\'m having some trouble figuring this problem out. I\'m aware that everything in a DOM is a node and that a DOM element is also a node. However, my problem is this: I have a DO
Just do an === comparison. Since they're both objects, the comparison will be identity based.
===
if (my_node === my_element) { // they're the same thing }