From a42273807d2b1b1ff1362c1b9fc4cb48f65fda11 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Thu, 1 Sep 2011 11:16:38 -0400 Subject: [PATCH] Landing pull request 478. Apply fixes as noted by Diego Perini, David Murdoch & Mathias Bynens. Supplements #9634 Fixes #9634. More Details: - https://github.com/jquery/jquery/pull/478 - http://bugs.jquery.com/ticket/9634 --- src/support.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/support.js b/src/support.js index 2784cf90b..46b29c2d8 100644 --- a/src/support.js +++ b/src/support.js @@ -24,7 +24,8 @@ jQuery.support = (function() { // Preliminary tests div.setAttribute("className", "t"); - div.innerHTML = "
a"; + div.innerHTML = "
a"; + all = div.getElementsByTagName( "*" ); a = div.getElementsByTagName( "a" )[ 0 ]; @@ -152,8 +153,8 @@ jQuery.support = (function() { if ( body ) { jQuery.extend( testElementStyle, { position: "absolute", - left: -1000, - top: -1000 + left: "-1000px", + top: "-1000px" }); } for ( i in testElementStyle ) { @@ -185,7 +186,7 @@ jQuery.support = (function() { support.shrinkWrapBlocks = ( div.offsetWidth !== 2 ); } - div.innerHTML = "
 
"; + div.innerHTML = "
t
"; tds = div.getElementsByTagName( "td" ); // Check if table cells still have offsetWidth/Height when they are set -- 2.39.5