Skip to content
Permalink
Browse files
Fix reliableHiddenOffsets test was not working properly when table ce…
…lls have borders, causing unnecessary slowness in some browsers. Thanks to matjas for his $.support test page.
  • Loading branch information
csnover committed Dec 26, 2010
1 parent 1f92ede commit 52b1709
Showing 1 changed file with 1 addition and 1 deletion.
@@ -147,7 +147,7 @@
jQuery.support.shrinkWrapBlocks = div.offsetWidth !== 2;
}

div.innerHTML = "<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";
div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
var tds = div.getElementsByTagName("td");

// Check if table cells still have offsetWidth/Height when they are set

1 comment on commit 52b1709

@mathiasbynens
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, the $.support test page mentioned can be found here: http://mathiasbynens.be/demo/jquery-support

Please sign in to comment.