]> source.dussan.org Git - jquery.git/commitdiff
Fix reliableHiddenOffsets test was not working properly when table cells have borders...
authorColin Snover <github.com@zetafleet.com>
Sun, 26 Dec 2010 16:35:14 +0000 (10:35 -0600)
committerColin Snover <github.com@zetafleet.com>
Sun, 26 Dec 2010 16:35:14 +0000 (10:35 -0600)
src/support.js

index 67b41c4a7a34b79b347ea2a21a7f92c916837fad..e4c3ea9164c6e8e41efa542499c351d97470670c 100644 (file)
                        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