From 6072d150d61655ec07f714e1d58a0bd7baa5ec3f Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski Date: Wed, 23 Mar 2016 15:03:06 +0100 Subject: Docs: Update support comments to follow the new syntax The changes follow the spec proposed in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197 --- src/manipulation/buildFragment.js | 4 ++-- src/manipulation/getAll.js | 2 +- src/manipulation/support.js | 4 ++-- src/manipulation/wrapMap.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/manipulation') diff --git a/src/manipulation/buildFragment.js b/src/manipulation/buildFragment.js index cfdd1c0e6..1db3caa38 100644 --- a/src/manipulation/buildFragment.js +++ b/src/manipulation/buildFragment.js @@ -24,7 +24,7 @@ function buildFragment( elems, context, scripts, selection, ignored ) { // Add nodes directly if ( jQuery.type( elem ) === "object" ) { - // Support: Android<4.1, PhantomJS<2 + // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); @@ -47,7 +47,7 @@ function buildFragment( elems, context, scripts, selection, ignored ) { tmp = tmp.lastChild; } - // Support: Android<4.1, PhantomJS<2 + // Support: Android <=4.0 only, PhantomJS 1 only // push.apply(_, arraylike) throws on ancient WebKit jQuery.merge( nodes, tmp.childNodes ); diff --git a/src/manipulation/getAll.js b/src/manipulation/getAll.js index a5a0ccaf2..5f3141048 100644 --- a/src/manipulation/getAll.js +++ b/src/manipulation/getAll.js @@ -4,7 +4,7 @@ define( [ function getAll( context, tag ) { - // Support: IE9-11 only + // Support: IE <=9 - 11 only // Use typeof to avoid zero-argument method invocation on host objects (#15151) var ret = typeof context.getElementsByTagName !== "undefined" ? context.getElementsByTagName( tag || "*" ) : diff --git a/src/manipulation/support.js b/src/manipulation/support.js index da474e0a3..d01c439ee 100644 --- a/src/manipulation/support.js +++ b/src/manipulation/support.js @@ -18,11 +18,11 @@ define( [ div.appendChild( input ); - // Support: Android<4.2 + // Support: Android <=4.1 only // Older WebKit doesn't clone checked state correctly in fragments support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked; - // Support: IE<=11 only + // Support: IE <=11 only // Make sure textarea (and checkbox) defaultValue is properly cloned div.innerHTML = ""; support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue; diff --git a/src/manipulation/wrapMap.js b/src/manipulation/wrapMap.js index fdb430a03..921c2eac5 100644 --- a/src/manipulation/wrapMap.js +++ b/src/manipulation/wrapMap.js @@ -3,7 +3,7 @@ define( function() { // We have to close these tags to support XHTML (#13200) var wrapMap = { - // Support: IE9 + // Support: IE <=9 only option: [ 1, "" ], // XHTML parsers do not magically insert elements in the @@ -17,7 +17,7 @@ var wrapMap = { _default: [ 0, "", "" ] }; -// Support: IE9 +// Support: IE <=9 only wrapMap.optgroup = wrapMap.option; wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; -- cgit v1.2.3