mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Misc: Drop support for older browsers; update support comments
That includes IE<8, Opera 12.x, Firefox<29, Safari<6.0 and some hacks for old Blackberry. Fixes gh-1836 Fixes gh-1701 Refs gh-1815 Refs gh-1820
This commit is contained in:
committed by
Michał Gołębiowski
parent
a467f8653a
commit
90d7cc1d8b
@@ -36,12 +36,11 @@ if ( window.getComputedStyle ) {
|
||||
ret = jQuery.style( elem, name );
|
||||
}
|
||||
|
||||
// Support: Android 4.0-4.3
|
||||
// A tribute to the "awesome hack by Dean Edwards"
|
||||
// Chrome < 17 and Safari 5.0 uses "computed value"
|
||||
// instead of "used value" for margin-right
|
||||
// Safari 5.1.7 (at least) returns percentage for a larger set of values,
|
||||
// but width seems to be reliably pixels
|
||||
// this is against the CSSOM draft spec:
|
||||
// Android Browser returns percentage for some values,
|
||||
// but width seems to be reliably pixels.
|
||||
// This is against the CSSOM draft spec:
|
||||
// http://dev.w3.org/csswg/cssom/#resolved-values
|
||||
if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
|
||||
|
||||
@@ -61,7 +60,7 @@ if ( window.getComputedStyle ) {
|
||||
}
|
||||
}
|
||||
|
||||
// Support: IE
|
||||
// Support: IE9-11+
|
||||
// IE returns zIndex value as an integer.
|
||||
return ret === undefined ?
|
||||
ret :
|
||||
@@ -115,7 +114,7 @@ if ( window.getComputedStyle ) {
|
||||
}
|
||||
}
|
||||
|
||||
// Support: IE
|
||||
// Support: IE<9
|
||||
// IE returns zIndex value as an integer.
|
||||
return ret === undefined ?
|
||||
ret :
|
||||
|
||||
Reference in New Issue
Block a user