mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Docs:Tests: Remove obsolete code from tests, update support comments
Support comments that were lacking the final IE/Edge version that exhibits the bug were checked & updated. Links to the Chromium bug tracker were updated. Code in tests related to unsupported browsers (like Android 2.3 in non-basic tests) has been removed. Fixes gh-2868 Closes gh-2949
This commit is contained in:
@@ -9,7 +9,8 @@ jQuery.parseXML = function( data ) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE 9-11 only
|
||||
// IE throws on parseFromString with invalid input.
|
||||
try {
|
||||
xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
|
||||
} catch ( e ) {
|
||||
|
||||
@@ -15,7 +15,7 @@ var xhrSuccessStatus = {
|
||||
// File protocol always yields status code 0, assume 200
|
||||
0: 200,
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE9 only
|
||||
// #1450: sometimes IE returns 1223 when it should be 204
|
||||
1223: 204
|
||||
},
|
||||
@@ -79,7 +79,7 @@ jQuery.ajaxTransport( function( options ) {
|
||||
xhr.abort();
|
||||
} else if ( type === "error" ) {
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE9 only
|
||||
// On a manual native abort, IE9 throws
|
||||
// errors on any property access that is not readyState
|
||||
if ( typeof xhr.status !== "number" ) {
|
||||
@@ -115,7 +115,7 @@ jQuery.ajaxTransport( function( options ) {
|
||||
xhr.onload = callback();
|
||||
errorCallback = xhr.onerror = callback( "error" );
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE9 only
|
||||
// Use onreadystatechange to replace onabort
|
||||
// to handle uncaught aborts
|
||||
if ( xhr.onabort !== undefined ) {
|
||||
|
||||
@@ -3,7 +3,7 @@ define( [
|
||||
"../var/support"
|
||||
], function( document, support ) {
|
||||
|
||||
// Support: Safari 8+
|
||||
// Support: Safari 8 only
|
||||
// In Safari 8 documents created via document.implementation.createHTMLDocument
|
||||
// collapse sibling forms: the second one becomes a child of the first one.
|
||||
// Because of that, this security measure has to be disabled in Safari 8.
|
||||
|
||||
@@ -13,7 +13,7 @@ function curCSS( elem, name, computed ) {
|
||||
|
||||
computed = computed || getStyles( elem );
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE9 only
|
||||
// getPropertyValue is only needed for .css('filter') (#12537)
|
||||
if ( computed ) {
|
||||
ret = computed.getPropertyValue( name ) || computed[ name ];
|
||||
@@ -47,7 +47,7 @@ function curCSS( elem, name, computed ) {
|
||||
|
||||
return ret !== undefined ?
|
||||
|
||||
// Support: IE9-11+
|
||||
// Support: IE9-11 only
|
||||
// IE returns zIndex value as an integer.
|
||||
ret + "" :
|
||||
ret;
|
||||
|
||||
@@ -56,7 +56,7 @@ function showHide( elements, show ) {
|
||||
}
|
||||
if ( elem.style.display === "" && jQuery.css( elem, "display" ) === "none" &&
|
||||
|
||||
// Support: Firefox <=42 - 43
|
||||
// Support: Firefox 43+
|
||||
// Don't set inline display on disconnected elements with computed display: none
|
||||
jQuery.contains( elem.ownerDocument, elem ) ) {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ define( [
|
||||
return;
|
||||
}
|
||||
|
||||
// Support: IE9-11+
|
||||
// Support: IE9-11 only
|
||||
// Style of cloned element affects source element cloned (#8908)
|
||||
div.style.backgroundClip = "content-box";
|
||||
div.cloneNode( true ).style.backgroundClip = "";
|
||||
@@ -66,7 +66,7 @@ define( [
|
||||
},
|
||||
pixelMarginRight: function() {
|
||||
|
||||
// Support: Android 4.0-4.3
|
||||
// Support: Android 4.0 - 4.3 only
|
||||
// We're checking for boxSizingReliableVal here instead of pixelMarginRightVal
|
||||
// since that compresses better and they're computed together anyway.
|
||||
if ( boxSizingReliableVal == null ) {
|
||||
@@ -76,7 +76,7 @@ define( [
|
||||
},
|
||||
reliableMarginLeft: function() {
|
||||
|
||||
// Support: IE <=8 only, Android 4.0 - 4.3 only, Firefox <=3 - 37
|
||||
// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44+
|
||||
if ( boxSizingReliableVal == null ) {
|
||||
computeStyleTests();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
define( function() {
|
||||
return function( elem ) {
|
||||
|
||||
// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
|
||||
// Support: IE<=11 only, Firefox<=30+ (#15098, #14150)
|
||||
// IE throws on elements created in popups
|
||||
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
|
||||
var view = elem.ownerDocument.defaultView;
|
||||
|
||||
@@ -141,7 +141,7 @@ Data.prototype = {
|
||||
// Support: Chrome <= 35-45+
|
||||
// Webkit & Blink performance suffers when deleting properties
|
||||
// from DOM nodes, so set to undefined instead
|
||||
// https://code.google.com/p/chromium/issues/detail?id=378607
|
||||
// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
|
||||
if ( owner.nodeType ) {
|
||||
owner[ this.expando ] = undefined;
|
||||
} else {
|
||||
|
||||
@@ -9,7 +9,7 @@ var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
|
||||
|
||||
jQuery.Deferred.exceptionHook = function( error, stack ) {
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE9 only
|
||||
// Console exists when dev tools are open, which can happen at any time
|
||||
if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
|
||||
window.console.warn( "jQuery.Deferred exception: " + error.message, stack );
|
||||
|
||||
@@ -88,7 +88,7 @@ Tween.propHooks = {
|
||||
}
|
||||
};
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE9 only
|
||||
// Panic based approach to setting things on disconnected nodes
|
||||
Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
|
||||
set: function( tween ) {
|
||||
|
||||
@@ -22,7 +22,7 @@ function returnFalse() {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Support: IE9
|
||||
// Support: IE9 only
|
||||
// See #13393 for more info
|
||||
function safeActiveElement() {
|
||||
try {
|
||||
@@ -625,7 +625,7 @@ jQuery.Event.prototype = {
|
||||
//
|
||||
// Support: Safari 7 only
|
||||
// Safari sends mouseenter too often; see:
|
||||
// https://code.google.com/p/chromium/issues/detail?id=470258
|
||||
// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
|
||||
// for the description of the bug (it existed in older Chrome versions as well).
|
||||
jQuery.each( {
|
||||
mouseenter: "mouseover",
|
||||
|
||||
@@ -7,14 +7,14 @@ define( [
|
||||
"./trigger"
|
||||
], function( jQuery, dataPriv, support ) {
|
||||
|
||||
// Support: Firefox
|
||||
// Support: Firefox 44+
|
||||
// Firefox doesn't have focus(in | out) events
|
||||
// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
|
||||
//
|
||||
// Support: Chrome, Safari
|
||||
// Support: Chrome 48+, Safari 9.0+
|
||||
// focus(in | out) events fire after focus & blur events,
|
||||
// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
|
||||
// Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857
|
||||
// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
|
||||
if ( !support.focusin ) {
|
||||
jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ define( [
|
||||
|
||||
function getAll( context, tag ) {
|
||||
|
||||
// Support: IE9-11+
|
||||
// Support: IE9-11 only
|
||||
// Use typeof to avoid zero-argument method invocation on host objects (#15151)
|
||||
var ret = typeof context.getElementsByTagName !== "undefined" ?
|
||||
context.getElementsByTagName( tag || "*" ) :
|
||||
|
||||
@@ -8,7 +8,7 @@ define( [
|
||||
div = fragment.appendChild( document.createElement( "div" ) ),
|
||||
input = document.createElement( "input" );
|
||||
|
||||
// Support: Android 4.0-4.3
|
||||
// Support: Android 4.0 - 4.3 only
|
||||
// Check state lost if the name is set (#11217)
|
||||
// Support: Windows Web Apps (WWA)
|
||||
// `name` and `type` must use .setAttribute for WWA (#14901)
|
||||
@@ -22,7 +22,7 @@ define( [
|
||||
// Older WebKit doesn't clone checked state correctly in fragments
|
||||
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
|
||||
|
||||
// Support: IE<=11+
|
||||
// Support: IE<=11 only
|
||||
// Make sure textarea (and checkbox) defaultValue is properly cloned
|
||||
div.innerHTML = "<textarea>x</textarea>";
|
||||
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
|
||||
|
||||
@@ -203,10 +203,10 @@ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(
|
||||
};
|
||||
} );
|
||||
|
||||
// Support: Safari<7-8+, Chrome<37-44+
|
||||
// Support: Safari<7-9.0+, Chrome<37-48+
|
||||
// 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
|
||||
// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
|
||||
// getComputedStyle returns percent when specified for top/left/bottom/right;
|
||||
// rather than make the css module depend on the offset module, just check for it here
|
||||
jQuery.each( [ "top", "left" ], function( i, prop ) {
|
||||
|
||||
Reference in New Issue
Block a user