Skip to content

Commit 6072d15

Browse files
committed
Docs: Update support comments to follow the new syntax
The changes follow the spec proposed in: jquery/contribute.jquery.org#95 (comment)
1 parent 693f1b5 commit 6072d15

28 files changed

+54
-55
lines changed

src/.jshintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
"sub": true,
1414

15-
// Support: IE < 10, Android < 4.1
15+
// Support: IE <=9 only, Android <=4.0 only
1616
// The above browsers are failing a lot of tests in the ES5
1717
// test suite at http://test262.ecmascript.org.
1818
"es3": true,

src/ajax/parseXML.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jQuery.parseXML = function( data ) {
99
return null;
1010
}
1111

12-
// Support: IE 9-11 only
12+
// Support: IE 9 - 11 only
1313
// IE throws on parseFromString with invalid input.
1414
try {
1515
xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );

src/ajax/xhr.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var xhrSuccessStatus = {
1515
// File protocol always yields status code 0, assume 200
1616
0: 200,
1717

18-
// Support: IE9 only
18+
// Support: IE <=9 only
1919
// #1450: sometimes IE returns 1223 when it should be 204
2020
1223: 204
2121
},
@@ -79,7 +79,7 @@ jQuery.ajaxTransport( function( options ) {
7979
xhr.abort();
8080
} else if ( type === "error" ) {
8181

82-
// Support: IE9 only
82+
// Support: IE <=9 only
8383
// On a manual native abort, IE9 throws
8484
// errors on any property access that is not readyState
8585
if ( typeof xhr.status !== "number" ) {
@@ -97,7 +97,7 @@ jQuery.ajaxTransport( function( options ) {
9797
xhrSuccessStatus[ xhr.status ] || xhr.status,
9898
xhr.statusText,
9999

100-
// Support: IE9 only
100+
// Support: IE <=9 only
101101
// IE9 has no XHR2 but throws on binary (trac-11426)
102102
// For XHR2 non-text, let the caller handle it (gh-2498)
103103
( xhr.responseType || "text" ) !== "text" ||
@@ -115,7 +115,7 @@ jQuery.ajaxTransport( function( options ) {
115115
xhr.onload = callback();
116116
errorCallback = xhr.onerror = callback( "error" );
117117

118-
// Support: IE9 only
118+
// Support: IE 9 only
119119
// Use onreadystatechange to replace onabort
120120
// to handle uncaught aborts
121121
if ( xhr.onabort !== undefined ) {

src/attributes/prop.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jQuery.extend( {
5757
tabIndex: {
5858
get: function( elem ) {
5959

60-
// Support: IE 9-11 only
60+
// Support: IE <=9 - 11 only
6161
// elem.tabIndex doesn't always return the
6262
// correct value when it hasn't been explicitly set
6363
// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/

src/attributes/support.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define( [
1010

1111
input.type = "checkbox";
1212

13-
// Support: Android<4.4
13+
// Support: Android <=4.3 only
1414
// Default value for a checkbox should be "on"
1515
support.checkOn = input.value !== "";
1616

src/core.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var
2424
return new jQuery.fn.init( selector, context );
2525
},
2626

27-
// Support: Android<4.1
27+
// Support: Android <=4.0 only
2828
// Make sure we trim BOM and NBSP
2929
rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
3030

@@ -262,7 +262,7 @@ jQuery.extend( {
262262
return obj + "";
263263
}
264264

265-
// Support: Android<4.0 (functionish RegExp)
265+
// Support: Android <=2.3 only (functionish RegExp)
266266
return typeof obj === "object" || typeof obj === "function" ?
267267
class2type[ toString.call( obj ) ] || "object" :
268268
typeof obj;
@@ -305,7 +305,7 @@ jQuery.extend( {
305305
return obj;
306306
},
307307

308-
// Support: Android<4.1
308+
// Support: Android <=4.0 only
309309
trim: function( text ) {
310310
return text == null ?
311311
"" :
@@ -334,7 +334,7 @@ jQuery.extend( {
334334
return arr == null ? -1 : indexOf.call( arr, elem, i );
335335
},
336336

337-
// Support: Android<4.1, PhantomJS<2
337+
// Support: Android <=4.0 only, PhantomJS 1 only
338338
// push.apply(_, arraylike) throws on ancient WebKit
339339
merge: function( first, second ) {
340340
var len = +second.length,
@@ -458,7 +458,7 @@ function( i, name ) {
458458

459459
function isArrayLike( obj ) {
460460

461-
// Support: iOS 8.2 (not reproducible in simulator)
461+
// Support: real iOS 8.2 only (not reproducible in simulator)
462462
// `in` check used to prevent JIT error (gh-2145)
463463
// hasOwn isn't used here due to false negatives
464464
// regarding Nodelist length in IE

src/core/ready.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jQuery.ready.promise = function( obj ) {
7070

7171
// Catch cases where $(document).ready() is called
7272
// after the browser event has already occurred.
73-
// Support: IE9-10 only
73+
// Support: IE <=9 - 10 only
7474
// Older IE sometimes signals "interactive" too soon
7575
if ( document.readyState === "complete" ||
7676
( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {

src/css.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ function getWidthOrHeight( elem, name, extra ) {
119119
styles = getStyles( elem ),
120120
isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
121121

122-
// Support: IE <= 11 only
122+
// Support: IE <=11 only
123123
// Running getBoundingClientRect on a disconnected node
124124
// in IE throws an error.
125125
if ( elem.getClientRects().length ) {
126126
val = elem.getBoundingClientRect()[ name ];
127127
}
128128

129-
// Support: IE11 only
129+
// Support: IE 11 only
130130
// In IE 11 fullscreen elements inside of an iframe have
131131
// 100x too small dimensions (gh-1764).
132132
if ( document.msFullscreenElement && window.top !== window ) {
@@ -251,7 +251,6 @@ jQuery.extend( {
251251
value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
252252
}
253253

254-
// Support: IE9-11+
255254
// background-* props affect original clone's values
256255
if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
257256
style[ name ] = "inherit";
@@ -325,7 +324,7 @@ jQuery.each( [ "height", "width" ], function( i, name ) {
325324
// Support: Safari 8+
326325
// Table columns in Safari have non-zero offsetWidth & zero
327326
// getBoundingClientRect().width unless display is changed.
328-
// Support: IE <= 11 only
327+
// Support: IE <=11 only
329328
// Running getBoundingClientRect on a disconnected node
330329
// in IE throws an error.
331330
( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?

src/css/curCSS.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function curCSS( elem, name, computed ) {
1313

1414
computed = computed || getStyles( elem );
1515

16-
// Support: IE9 only
16+
// Support: IE <=9 only
1717
// getPropertyValue is only needed for .css('filter') (#12537)
1818
if ( computed ) {
1919
ret = computed.getPropertyValue( name ) || computed[ name ];
@@ -47,7 +47,7 @@ function curCSS( elem, name, computed ) {
4747

4848
return ret !== undefined ?
4949

50-
// Support: IE9-11 only
50+
// Support: IE <=9 - 11 only
5151
// IE returns zIndex value as an integer.
5252
ret + "" :
5353
ret;

src/css/support.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ define( [
1515
return;
1616
}
1717

18-
// Support: IE9-11 only
18+
// Support: IE <=9 - 11 only
1919
// Style of cloned element affects source element cloned (#8908)
2020
div.style.backgroundClip = "content-box";
2121
div.cloneNode( true ).style.backgroundClip = "";
@@ -45,7 +45,7 @@ define( [
4545
var divStyle = window.getComputedStyle( div );
4646
pixelPositionVal = divStyle.top !== "1%";
4747

48-
// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44+
48+
// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
4949
reliableMarginLeftVal = divStyle.marginLeft === "2px";
5050
boxSizingReliableVal = divStyle.width === "4px";
5151

src/css/var/getStyles.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
define( function() {
22
return function( elem ) {
33

4-
// Support: IE<=11 only, Firefox<=30+ (#15098, #14150)
4+
// Support: IE <=11 only, Firefox <=30 (#15098, #14150)
55
// IE throws on elements created in popups
66
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
77
var view = elem.ownerDocument.defaultView;

src/data/Data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Data.prototype = {
138138
// Remove the expando if there's no more data
139139
if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
140140

141-
// Support: Chrome <= 35-45+
141+
// Support: Chrome <=35 - 45
142142
// Webkit & Blink performance suffers when deleting properties
143143
// from DOM nodes, so set to undefined instead
144144
// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)

src/deferred/exceptionHook.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
99

1010
jQuery.Deferred.exceptionHook = function( error, stack ) {
1111

12-
// Support: IE9 only
12+
// Support: IE 8 - 9 only
1313
// Console exists when dev tools are open, which can happen at any time
1414
if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
1515
window.console.warn( "jQuery.Deferred exception: " + error.message, stack );

src/effects.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ function Animation( elem, properties, options ) {
298298
var currentTime = fxNow || createFxNow(),
299299
remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
300300

301-
// Support: Android 2.3
301+
// Support: Android 2.3 only
302302
// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
303303
temp = remaining / animation.duration || 0,
304304
percent = 1 - temp,

src/effects/Tween.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Tween.propHooks = {
8888
}
8989
};
9090

91-
// Support: IE9 only
91+
// Support: IE <=9 only
9292
// Panic based approach to setting things on disconnected nodes
9393
Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
9494
set: function( tween ) {
@@ -110,7 +110,7 @@ jQuery.easing = {
110110

111111
jQuery.fx = Tween.prototype.init;
112112

113-
// Back Compat <1.8 extension point
113+
// Back compat <1.8 extension point
114114
jQuery.fx.step = {};
115115

116116
} );

src/event.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function returnFalse() {
2222
return false;
2323
}
2424

25-
// Support: IE9 only
25+
// Support: IE <=9 only
2626
// See #13393 for more info
2727
function safeActiveElement() {
2828
try {
@@ -347,11 +347,11 @@ jQuery.event = {
347347
delegateCount = handlers.delegateCount,
348348
cur = event.target;
349349

350-
// Support (at least): Chrome, IE9
350+
// Support: IE <=9
351351
// Find delegate handlers
352352
// Black-hole SVG <use> instance trees (#13180)
353353
//
354-
// Support: Firefox<=42+
354+
// Support: Firefox <=42
355355
// Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)
356356
if ( delegateCount && cur.nodeType &&
357357
( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
@@ -469,7 +469,7 @@ jQuery.event = {
469469
event[ prop ] = originalEvent[ prop ];
470470
}
471471

472-
// Support: Safari 6-8+
472+
// Support: Safari <=6 - 7 only
473473
// Target should not be a text node (#504, #13143)
474474
if ( event.target.nodeType === 3 ) {
475475
event.target = event.target.parentNode;
@@ -558,7 +558,7 @@ jQuery.Event = function( src, props ) {
558558
this.isDefaultPrevented = src.defaultPrevented ||
559559
src.defaultPrevented === undefined &&
560560

561-
// Support: Android<4.0
561+
// Support: Android <=2.3 only
562562
src.returnValue === false ?
563563
returnTrue :
564564
returnFalse;

src/event/focusin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ define( [
77
"./trigger"
88
], function( jQuery, dataPriv, support ) {
99

10-
// Support: Firefox 44+
10+
// Support: Firefox <=44
1111
// Firefox doesn't have focus(in | out) events
1212
// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
1313
//
14-
// Support: Chrome 48+, Safari 9.0+
14+
// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
1515
// focus(in | out) events fire after focus & blur events,
1616
// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
1717
// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857

src/manipulation.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function domManip( collection, args, callback, ignored ) {
164164
// Keep references to cloned scripts for later restoration
165165
if ( hasScripts ) {
166166

167-
// Support: Android<4.1, PhantomJS<2
167+
// Support: Android <=4.0 only, PhantomJS 1 only
168168
// push.apply(_, arraylike) throws on ancient WebKit
169169
jQuery.merge( scripts, getAll( node, "script" ) );
170170
}
@@ -292,13 +292,13 @@ jQuery.extend( {
292292
}
293293
}
294294

295-
// Support: Chrome <= 35-45+
295+
// Support: Chrome <=35 - 45+
296296
// Assign undefined instead of using delete, see Data#remove
297297
elem[ dataPriv.expando ] = undefined;
298298
}
299299
if ( elem[ dataUser.expando ] ) {
300300

301-
// Support: Chrome <= 35-45+
301+
// Support: Chrome <=35 - 45+
302302
// Assign undefined instead of using delete, see Data#remove
303303
elem[ dataUser.expando ] = undefined;
304304
}
@@ -465,7 +465,7 @@ jQuery.each( {
465465
elems = i === last ? this : this.clone( true );
466466
jQuery( insert[ i ] )[ original ]( elems );
467467

468-
// Support: Android<4.1, PhantomJS<2
468+
// Support: Android <=4.0 only, PhantomJS 1 only
469469
// .get() because push.apply(_, arraylike) throws on ancient WebKit
470470
push.apply( ret, elems.get() );
471471
}

src/manipulation/buildFragment.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function buildFragment( elems, context, scripts, selection, ignored ) {
2424
// Add nodes directly
2525
if ( jQuery.type( elem ) === "object" ) {
2626

27-
// Support: Android<4.1, PhantomJS<2
27+
// Support: Android <=4.0 only, PhantomJS 1 only
2828
// push.apply(_, arraylike) throws on ancient WebKit
2929
jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
3030

@@ -47,7 +47,7 @@ function buildFragment( elems, context, scripts, selection, ignored ) {
4747
tmp = tmp.lastChild;
4848
}
4949

50-
// Support: Android<4.1, PhantomJS<2
50+
// Support: Android <=4.0 only, PhantomJS 1 only
5151
// push.apply(_, arraylike) throws on ancient WebKit
5252
jQuery.merge( nodes, tmp.childNodes );
5353

src/manipulation/getAll.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ define( [
44

55
function getAll( context, tag ) {
66

7-
// Support: IE9-11 only
7+
// Support: IE <=9 - 11 only
88
// Use typeof to avoid zero-argument method invocation on host objects (#15151)
99
var ret = typeof context.getElementsByTagName !== "undefined" ?
1010
context.getElementsByTagName( tag || "*" ) :

src/manipulation/support.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ define( [
1818

1919
div.appendChild( input );
2020

21-
// Support: Android<4.2
21+
// Support: Android <=4.1 only
2222
// Older WebKit doesn't clone checked state correctly in fragments
2323
support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
2424

25-
// Support: IE<=11 only
25+
// Support: IE <=11 only
2626
// Make sure textarea (and checkbox) defaultValue is properly cloned
2727
div.innerHTML = "<textarea>x</textarea>";
2828
support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;

src/manipulation/wrapMap.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ define( function() {
33
// We have to close these tags to support XHTML (#13200)
44
var wrapMap = {
55

6-
// Support: IE9
6+
// Support: IE <=9 only
77
option: [ 1, "<select multiple='multiple'>", "</select>" ],
88

99
// XHTML parsers do not magically insert elements in the
@@ -17,7 +17,7 @@ var wrapMap = {
1717
_default: [ 0, "", "" ]
1818
};
1919

20-
// Support: IE9
20+
// Support: IE <=9 only
2121
wrapMap.optgroup = wrapMap.option;
2222

2323
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;

0 commit comments

Comments
 (0)