diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2013-09-11 15:03:40 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2013-09-11 15:35:50 -0500 |
commit | d092a88e85a1a66bfc2681e0a4c9648df0dee666 (patch) | |
tree | d23d07e04046e4136aed34daa4bf596455495138 /src/support.js | |
parent | 03fdc70a2e787ebd7b17c25134f16fde8f297d91 (diff) | |
download | jquery-d092a88e85a1a66bfc2681e0a4c9648df0dee666.tar.gz jquery-d092a88e85a1a66bfc2681e0a4c9648df0dee666.zip |
Set the input type for firefox. Fix a support test.
Diffstat (limited to 'src/support.js')
-rw-r--r-- | src/support.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/support.js b/src/support.js index e039a7a4f..00fd82928 100644 --- a/src/support.js +++ b/src/support.js @@ -16,6 +16,8 @@ for ( i in jQuery( support ) ) { support.ownLast = i !== "0"; // Note: most support tests are defined in their respective modules. +// false until the test is run +support.inlineBlockNeedsLayout = false; jQuery(function() { // We need to execute this one support test ASAP because we need to know @@ -42,9 +44,6 @@ jQuery(function() { body.appendChild( container ).appendChild( div ); - // Will be changed later if needed. - support.inlineBlockNeedsLayout = false; - if ( typeof div.style.zoom !== strundefined ) { // Support: IE<8 // Check if natively block-level elements act like inline-block @@ -52,9 +51,8 @@ jQuery(function() { // them layout div.innerHTML = ""; div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1"; - support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 ); - if ( support.inlineBlockNeedsLayout ) { + if ( (support.inlineBlockNeedsLayout = div.offsetWidth === 3) ) { // Prevent IE 6 from affecting layout for positioned elements #11048 // Prevent IE from shrinking the body in IE 7 mode #12869 // Support: IE<8 |