mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Fix #13754: Require element.style for support tests
This commit is contained in:
parent
fdaf2146ad
commit
c6a694e1c2
@ -8,9 +8,9 @@ jQuery.support = (function( support ) {
|
||||
div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user