]> source.dussan.org Git - jquery.git/commitdiff
Support: Skip style-based tests when element.style is undefined
authorRichard Gibson <richard.gibson@gmail.com>
Fri, 14 Feb 2014 14:22:44 +0000 (06:22 -0800)
committerRichard Gibson <richard.gibson@gmail.com>
Fri, 14 Feb 2014 14:22:44 +0000 (06:22 -0800)
Fixes #14785
Ref #13754
Ref badcd1b6f301e6253405f17759c1270549a34e12

src/css/support.js

index df0f3a2b2d9a0e0217d037ea1f5d05b435098502..8623979e27d84e8a994a5208619f2e4ac127ea29 100644 (file)
@@ -12,6 +12,10 @@ define([
                container = document.createElement( "div" ),
                div = document.createElement( "div" );
 
+       if ( !div.style ) {
+               return;
+       }
+
        div.style.backgroundClip = "content-box";
        div.cloneNode( true ).style.backgroundClip = "";
        support.clearCloneStyle = div.style.backgroundClip === "content-box";