DOM.js has so many functions like isElement et cetera, and they all use node.nodeType == Node.ELEMENT_TYPE instead of node instanceof Element, without once explaining why this is necessary (constructors from other windows and browser compatibility, apparently).
DOM.js
has so many functions likeisElement
et cetera, and they all usenode.nodeType == Node.ELEMENT_TYPE
instead ofnode instanceof Element
, without once explaining why this is necessary (constructors from other windows and browser compatibility, apparently).