Commit c6a694e1 authored by Richard Gibson's avatar Richard Gibson

Fix #13754: Require element.style for support tests

parent fdaf2146
...@@ -8,9 +8,9 @@ jQuery.support = (function( support ) { ...@@ -8,9 +8,9 @@ jQuery.support = (function( support ) {
div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>"; div.innerHTML = " <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
// Finish early in limited (non-browser) environments // Finish early in limited (non-browser) environments
all = div.getElementsByTagName("*"); all = div.getElementsByTagName("*") || [];
a = div.getElementsByTagName("a")[ 0 ]; a = div.getElementsByTagName("a")[ 0 ];
if ( !all || !a || !all.length ) { if ( !a || !a.style || !all.length ) {
return support; return support;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment