aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
authorBrandon Aaron <brandon.aaron@gmail.com>2007-09-18 18:08:35 +0000
committerBrandon Aaron <brandon.aaron@gmail.com>2007-09-18 18:08:35 +0000
commitc9899a74ac7b7ddb8663f4aa074c1c05f6514e5a (patch)
tree51ceb0ad55a8e4f3a08ab75b1099495df483c43d /src/offset.js
parentd5999be9ae4946d8996b2bbd8df66d6c457c4f30 (diff)
downloadjquery-c9899a74ac7b7ddb8663f4aa074c1c05f6514e5a.tar.gz
jquery-c9899a74ac7b7ddb8663f4aa074c1c05f6514e5a.zip
offset: do not add borders for table cells
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/offset.js b/src/offset.js
index f59fb9b27..20805de1c 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -43,7 +43,7 @@ jQuery.fn.offset = function() {
// Mozilla and Safari > 2 does not include the border on offset parents
// However Mozilla adds the border for table cells
- if ( mozilla && /^t[d|h]$/i.test(parent.tagName) || !safari2 )
+ if ( mozilla && !/^t[d|h]$/i.test(offsetParent.tagName) || safari && parseInt(version) >= 522 )
border( offsetParent );
// Safari <= 2 doubles body offsets with an absolutely positioned element or parent