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

File tree

28 files changed

+54
-55
lines changed

28 files changed

+54
-55
lines changed

src/.jshintrc

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 5 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 4 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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

0 commit comments

Comments
 (0)