ded/qwery — Issue #56: isNode (typeOf el === 'object') breaks compatibility with old browser
Author: leon1638
Created: 2011-11-09 17:32:56+00:00
State: open

I use a browser written in java called ice browser and this check in the isNode function breaks compatibility with it. The type is coming across as a function for some reason. Any way this check can be removed or to also include typeOf el === 'function'.

function isNode(el) {
return el && typeof el === 'object' && el.nodeType && (el.nodeType == 1 || el.nodeType == 9)
}