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 52b1709b94cf631e0641eebfa4f76b101528d93b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/support.js
@@ -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

This comment has been minimized.

Copy link
Contributor

commented on 52b1709 Dec 26, 2010

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

Please sign in to comment.
You can’t perform that action at this time.