aboutsummaryrefslogtreecommitdiffstats
path: root/bower_components/jquery/src/manipulation/support.js
diff options
context:
space:
mode:
authorJonathan Barronville2014-06-07 19:13:28 -0400
committerJonathan Barronville2014-06-07 19:13:28 -0400
commitb56e5c671ce89f1c8ddc67a4ac8d2f59de04ea85 (patch)
tree80ce4d67ff46505dc1ec77b72daf7bed59abf8b4 /bower_components/jquery/src/manipulation/support.js
parent67ad58c27c4a2704532246d044e1ecbae2a11022 (diff)
downloadsellevate-b56e5c671ce89f1c8ddc67a4ac8d2f59de04ea85.tar.bz2
Yo.
Diffstat (limited to 'bower_components/jquery/src/manipulation/support.js')
-rw-r--r--bower_components/jquery/src/manipulation/support.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/bower_components/jquery/src/manipulation/support.js b/bower_components/jquery/src/manipulation/support.js
new file mode 100644
index 0000000..fb1e855
--- /dev/null
+++ b/bower_components/jquery/src/manipulation/support.js
@@ -0,0 +1,31 @@
+define([
+ "../var/support"
+], function( support ) {
+
+(function() {
+ var fragment = document.createDocumentFragment(),
+ div = fragment.appendChild( document.createElement( "div" ) ),
+ input = document.createElement( "input" );
+
+ // #11217 - WebKit loses check when the name is after the checked attribute
+ // Support: Windows Web Apps (WWA)
+ // `name` and `type` need .setAttribute for WWA
+ input.setAttribute( "type", "radio" );
+ input.setAttribute( "checked", "checked" );
+ input.setAttribute( "name", "t" );
+
+ div.appendChild( input );
+
+ // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3
+ // old WebKit doesn't clone checked state correctly in fragments
+ support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
+
+ // Make sure textarea (and checkbox) defaultValue is properly cloned
+ // Support: IE9-IE11+
+ div.innerHTML = "<textarea>x</textarea>";
+ support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
+})();
+
+return support;
+
+});