From c6a694e1c262acb941b7fd86663f186656496bbc Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Tue, 9 Apr 2013 09:59:43 -0400 Subject: [PATCH] Fix #13754: Require element.style for support tests --- src/support.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }