diff --git a/src/event.js b/src/event.js index b17d8c54a..95849e84e 100644 --- a/src/event.js +++ b/src/event.js @@ -572,7 +572,7 @@ jQuery.event = { event.target = originalEvent.srcElement || document; } - // 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 cdca242f4..43bf20b7c 100644 --- a/src/offset.js +++ b/src/offset.js @@ -215,6 +215,7 @@ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( }; }); +// 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 // getComputedStyle returns percent when specified for top/left/bottom/right diff --git a/test/unit/css.js b/test/unit/css.js index 9c3a186d0..74f66b8ed 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -1180,7 +1180,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 b5865b2bd..75a3e3071 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -268,7 +268,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "style": true, "submit": true }; - } else if ( /(6|7)\.0(\.\d+|) safari/i.test( userAgent ) ) { + } else if ( /7\.0(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax": true, "attributes": true,