aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorColin Snover <github.com@zetafleet.com>2010-12-26 10:35:14 -0600
committerColin Snover <github.com@zetafleet.com>2010-12-26 10:35:14 -0600
commit52b1709b94cf631e0641eebfa4f76b101528d93b (patch)
tree8f5a42abb3eb037446a7c459769d9922cf02a7a0 /src/support.js
parent1f92edee207829a28de80ee72548cdbd599bcc79 (diff)
downloadjquery-52b1709b94cf631e0641eebfa4f76b101528d93b.tar.gz
jquery-52b1709b94cf631e0641eebfa4f76b101528d93b.zip
Fix reliableHiddenOffsets test was not working properly when table cells have borders, causing unnecessary slowness in some browsers. Thanks to matjas for his $.support test page.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support.js b/src/support.js
index 67b41c4a7..e4c3ea916 100644
--- a/src/support.js
+++ b/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