Test jQuery.type also with document.