From: Michał Gołębiowski Date: Mon, 27 Jul 2015 20:14:48 +0000 (+0200) Subject: Core: Adjust comments & tests after dropping Safari 6 support X-Git-Tag: 2.2.0~177 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=93bee4701d14202045a88aab156da0daf9418430;p=jquery.git Core: Adjust comments & tests after dropping Safari 6 support Support comments that mentioned only Safari < 7 were checked & updated to account for bugs existing in newer versions as well; Safari 6 support test results were removed. Refs gh-2482 --- diff --git a/src/event.js b/src/event.js index 04ee403d5..53cfcd5ee 100644 --- a/src/event.js +++ b/src/event.js @@ -593,7 +593,7 @@ jQuery.event = { event[ prop ] = originalEvent[ prop ]; } - // Support: Safari 6.0+ + // Support: Safari 6-8+ // Target should not be a text node (#504, #13143) if ( event.target.nodeType === 3 ) { event.target = event.target.parentNode; diff --git a/src/offset.js b/src/offset.js index f0139d5ef..23a4b2a18 100644 --- a/src/offset.js +++ b/src/offset.js @@ -203,7 +203,7 @@ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( }; }); -// Support: Safari<7+, Chrome<37+ +// Support: Safari<7-8+, Chrome<37-44+ // Add the top/left cssHooks using jQuery.fn.position // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084 // Blink bug: https://code.google.com/p/chromium/issues/detail?id=229280 diff --git a/test/unit/css.js b/test/unit/css.js index 47db2c8f3..181695b70 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -1121,7 +1121,7 @@ test( "show() after hide() should always set display to initial value (#14750)", equal( div.css( "display" ), "list-item", "should get last set display value" ); }); -// Support: IE < 11, Safari < 7 +// Support: IE < 11 // We have to jump through the hoops here in order to test work with "order" CSS property, // that some browsers do not support. This test is not, strictly speaking, correct, // but it's the best that we can do. diff --git a/test/unit/support.js b/test/unit/support.js index 46f904efa..d62c8b988 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -143,7 +143,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "radioValue": true, "reliableMarginRight": true }; - } else if ( /(6|7)\.0(\.\d+|) safari/i.test( userAgent ) ) { + } else if ( /7\.0(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax": true, "boxSizingReliable": true,