diff options
-rw-r--r-- | src/offset.js | 2 |
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 |