diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-05-13 21:39:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 21:39:56 +0200 |
commit | 3527a3840585e6a359cd712591c9c57398357b9b (patch) | |
tree | 41446f392d9a8984e31297df3252d1b538f4191e /src/manipulation.js | |
parent | ccbd6b93424cbdbf86f07a86c2e55cbab497d7a3 (diff) | |
download | jquery-3527a3840585e6a359cd712591c9c57398357b9b.tar.gz jquery-3527a3840585e6a359cd712591c9c57398357b9b.zip |
Core: Remove IE-specific support tests, rely on document.documentMode
Also, update some tests to IE-sniff when deciding whether
to skip a test.
Fixes gh-4386
Closes gh-4387
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index fb10ef5c2..cca3947ce 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -2,6 +2,7 @@ define( [ "./core", "./core/isAttached", "./var/concat", + "./var/isIE", "./var/push", "./var/rcheckableType", "./core/access", @@ -11,7 +12,6 @@ define( [ "./manipulation/getAll", "./manipulation/setGlobalEval", "./manipulation/buildFragment", - "./manipulation/support", "./data/var/dataPriv", "./data/var/dataUser", @@ -23,9 +23,9 @@ define( [ "./traversing", "./selector", "./event" -], function( jQuery, isAttached, concat, push, rcheckableType, - access, rtagName, rscriptType, - wrapMap, getAll, setGlobalEval, buildFragment, support, +], function( jQuery, isAttached, concat, isIE, push, + rcheckableType, access, rtagName, rscriptType, + wrapMap, getAll, setGlobalEval, buildFragment, dataPriv, dataUser, acceptData, DOMEval, nodeName ) { "use strict"; @@ -222,7 +222,7 @@ jQuery.extend( { inPage = isAttached( elem ); // Fix IE cloning issues - if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && + if ( isIE && ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) { // We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2 @@ -233,7 +233,7 @@ jQuery.extend( { // Support: IE <=11+ // IE fails to set the defaultValue to the correct value when - // cloning other types of input fields + // cloning textareas. if ( destElements[ i ].nodeName.toLowerCase() === "textarea" ) { destElements[ i ].defaultValue = srcElements[ i ].defaultValue; } |