mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 07:15:09 -05:00
Fix #14432: Always return string from .css("z-index"). Close gh-1395.
(cherry picked from commit 5ce4b06c28)
Conflicts:
src/css/curCSS.js
This commit is contained in:
committed by
Richard Gibson
parent
62900a9edb
commit
32d61d75e5
@@ -51,7 +51,9 @@ if ( window.getComputedStyle ) {
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
// Support: IE
|
||||
// IE returns zIndex value as an integer.
|
||||
return ret === undefined ? ret : ret + "";
|
||||
};
|
||||
} else if ( document.documentElement.currentStyle ) {
|
||||
getStyles = function( elem ) {
|
||||
@@ -99,7 +101,11 @@ if ( window.getComputedStyle ) {
|
||||
}
|
||||
}
|
||||
|
||||
return ret === "" ? "auto" : ret;
|
||||
return ret === "" ? "auto" :
|
||||
// Support: IE
|
||||
// IE returns zIndex value as an integer.
|
||||
ret === undefined ? ret :
|
||||
ret + "";
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user