Skip to content
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 @@ = 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


This comment has been minimized.

Copy link

@mathiasbynens mathiasbynens commented on 52b1709 Dec 26, 2010

FYI, the $.support test page mentioned can be found here:

Please sign in to comment.