I was writing a script the other day and needed to differentiate between HTMLElement and jQuery objects. I was performing the check with (myObject instanceof HTMLElement) but Internet Explorer (wait for it…) doesn’t expose HTMLElement, so you can’t check against it. I looked into it a bit and discovered that one can check for HTMLElements in IE by looking for the nodeType property. I didn’t wan