diff --git a/src/support.js b/src/support.js index 83569507f..e05300c4c 100644 --- a/src/support.js +++ b/src/support.js @@ -8,9 +8,9 @@ jQuery.support = (function( support ) { div.innerHTML = "
a"; // Finish early in limited (non-browser) environments - all = div.getElementsByTagName("*"); + all = div.getElementsByTagName("*") || []; a = div.getElementsByTagName("a")[ 0 ]; - if ( !all || !a || !all.length ) { + if ( !a || !a.style || !all.length ) { return support; }