Commit a4227380 authored by Rick Waldron's avatar Rick Waldron Committed by timmywil

Landing pull request 478. Apply fixes as noted by Diego Perini, David Murdoch...

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
parent f035c445
...@@ -24,7 +24,8 @@ jQuery.support = (function() { ...@@ -24,7 +24,8 @@ jQuery.support = (function() {
// Preliminary tests // Preliminary tests
div.setAttribute("className", "t"); div.setAttribute("className", "t");
div.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>"; div.innerHTML = " <link><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type=checkbox>";
all = div.getElementsByTagName( "*" ); all = div.getElementsByTagName( "*" );
a = div.getElementsByTagName( "a" )[ 0 ]; a = div.getElementsByTagName( "a" )[ 0 ];
...@@ -152,8 +153,8 @@ jQuery.support = (function() { ...@@ -152,8 +153,8 @@ jQuery.support = (function() {
if ( body ) { if ( body ) {
jQuery.extend( testElementStyle, { jQuery.extend( testElementStyle, {
position: "absolute", position: "absolute",
left: -1000, left: "-1000px",
top: -1000 top: "-1000px"
}); });
} }
for ( i in testElementStyle ) { for ( i in testElementStyle ) {
...@@ -185,7 +186,7 @@ jQuery.support = (function() { ...@@ -185,7 +186,7 @@ jQuery.support = (function() {
support.shrinkWrapBlocks = ( div.offsetWidth !== 2 ); support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
} }
div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>&nbsp;</td></tr></table>"; div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
tds = div.getElementsByTagName( "td" ); tds = div.getElementsByTagName( "td" );
// Check if table cells still have offsetWidth/Height when they are set // Check if table cells still have offsetWidth/Height when they are set
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment