mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
set name to lowercase, since it's passed as initial caps
This commit is contained in:
parent
610ab137da
commit
73d060b522
@ -36,7 +36,7 @@ jQuery.each([ "Height", "Width" ], function( i, name ) {
|
|||||||
if ( jQuery.isWindow( elem ) ) {
|
if ( jQuery.isWindow( elem ) ) {
|
||||||
// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
|
// Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
|
||||||
return elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] ||
|
return elem.document.compatMode === "CSS1Compat" && elem.document.documentElement[ "client" + name ] ||
|
||||||
elem.document.body[ "client" + name ] || window.screen && window.screen[ name ];
|
elem.document.body[ "client" + name ] || window.screen && window.screen[ name.toLowerCase() ];
|
||||||
|
|
||||||
// Get document width or height
|
// Get document width or height
|
||||||
} else if ( elem.nodeType === 9 ) {
|
} else if ( elem.nodeType === 9 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user